From: Matt S Trout Date: Wed, 4 Apr 2018 21:24:24 +0000 (+0000) Subject: make Role consistent with Class, specify strictures 2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e220a64b3e0f0955ab6baa92e962d4a714709580;p=scpubgit%2FDX.git make Role consistent with Class, specify strictures 2 --- diff --git a/lib/DX/Class.pm b/lib/DX/Class.pm index 8bdef5d..7d8987c 100644 --- a/lib/DX/Class.pm +++ b/lib/DX/Class.pm @@ -3,7 +3,7 @@ package DX::Class; use Import::Into; sub import { - strictures->import::into(1); # should pass version + strictures->import::into({ level => 1, version => 2 }); # should pass version DX::Types->import::into(1, ':types', ':assert'); DX::Utils->import::into(1, '*trace'); Types::Standard->import::into(1, 'Maybe'); diff --git a/lib/DX/Role.pm b/lib/DX/Role.pm index 045c8a2..a15f9cb 100644 --- a/lib/DX/Role.pm +++ b/lib/DX/Role.pm @@ -3,8 +3,11 @@ package DX::Role; use Import::Into; sub import { - strictures->import::into(1); + strictures->import::into({ level => 1, version => 2 }); DX::Types->import::into(1, ':types', ':assert'); + DX::Utils->import::into(1, '*trace'); + Types::Standard->import::into(1, 'Maybe'); + Try::Tiny->import::into(1); Moo::Role->import::into(1); }