Commit | Line | Data |
9d759b64 |
1 | package DX::Class; |
2 | |
3 | use Import::Into; |
4 | |
5 | sub import { |
e220a64b |
6 | strictures->import::into({ level => 1, version => 2 }); # should pass version |
3e465d5d |
7 | DX::Types->import::into(1, ':types', ':assert'); |
bcee3a69 |
8 | DX::Utils->import::into(1, '*trace'); |
2548ce61 |
9 | Types::Standard->import::into( |
10 | 1, qw(Maybe ArrayRef HashRef Str Num Int Enum Bool) |
11 | ); |
fa8f5696 |
12 | Try::Tiny->import::into(1); |
9d759b64 |
13 | Moo->import::into(1); |
14 | # This would not be safe with method modifiers, but since the role |
15 | # provides only a single method it works out fine. |
16 | caller()->can('with')->('DX::Role::But'); |
17 | } |
18 | |
19 | 1; |