make Role consistent with Class, specify strictures 2
[scpubgit/DX.git] / lib / DX / Class.pm
CommitLineData
9d759b64 1package DX::Class;
2
3use Import::Into;
4
5sub 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');
d6fabec9 9 Types::Standard->import::into(1, 'Maybe');
fa8f5696 10 Try::Tiny->import::into(1);
9d759b64 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
171;