make Role consistent with Class, specify strictures 2
[scpubgit/DX.git] / lib / DX / Class.pm
1 package DX::Class;
2
3 use Import::Into;
4
5 sub import {
6   strictures->import::into({ level => 1, version => 2 }); # should pass version
7   DX::Types->import::into(1, ':types', ':assert');
8   DX::Utils->import::into(1, '*trace');
9   Types::Standard->import::into(1, 'Maybe');
10   Try::Tiny->import::into(1);
11   Moo->import::into(1);
12   # This would not be safe with method modifiers, but since the role
13   # provides only a single method it works out fine.
14   caller()->can('with')->('DX::Role::But');
15 }
16
17 1;