From: Karen Etheridge Date: Sun, 22 Mar 2015 21:24:41 +0000 (-0700) Subject: do not recomment importing everything from Moose::Util::TypeConstraints X-Git-Tag: v1.003005~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5bbc5b59a498eb9a005a48b3e5bb1768f10bef2f;p=p5sagit%2FJSON-MaybeXS.git do not recomment importing everything from Moose::Util::TypeConstraints creating new stringy types is not recommended, so limit our importing to just the sugar we need. --- diff --git a/lib/JSON/MaybeXS.pm b/lib/JSON/MaybeXS.pm index a9ef9de..65702d2 100644 --- a/lib/JSON/MaybeXS.pm +++ b/lib/JSON/MaybeXS.pm @@ -241,7 +241,7 @@ constant described above, as so: Alternatively, you can use duck typing: - use Moose::Util::TypeConstraints; + use Moose::Util::TypeConstraints 'duck_type'; is 'json' => ( isa => Object , duck_type([qw/ encode decode /])); =head1 AUTHOR