Organise your Moose types in libraries

Edit Package perl-MooseX-Types
http://search.cpan.org/dist/MooseX-Types

The types provided with Moose are by design global. This package helps you
to organise and selectively import your own and the built-in types in
libraries. As a nice side effect, it catches typos at compile-time too.
However, the main reason for this module is to provide an easy way to not
have conflicts with your type names, since the internal fully qualified
names of the types will be prefixed with the library's name.
This module will also provide you with some helper functions to make it
easier to use Moose types in your code.

Refresh
Refresh
Source Files
Filename Size Changed
MooseX-Types-0.35.tar.gz 0000032495 31.7 KB
perl-MooseX-Types.changes 0000003401 3.32 KB
perl-MooseX-Types.spec 0000004238 4.14 KB
Revision 7 (latest revision is 20)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 122899 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 7)
- updated to 0.35
     - The new delegation code could fail when a type had no
       parent. Attempting to subtype Any was one way to trigger the
       bug. (Dave Rolsky)
     - The new delegation code broke calling ->can or ->isa on
       MooseX::Types::TypeDecorator as a class method. (Dave Rolsky)
     - Special case new to avoid unexpected exceptions on unloaded classes
     - Switch delegation order to prioritise type over class except for new
     - Support delegation of methods to the class for class types
     - Factor out _try_delegate method
Comments 0
openSUSE Build Service is sponsored by