1 package MooseX::Types::Moose;
3 # ABSTRACT: Type exports that match the types shipped with L<Moose>
9 use Moose::Util::TypeConstraints ();
11 use namespace::clean -except => [qw( meta )];
17 use MooseX::Types::Moose qw( ArrayRef Int Str );
29 my ($self, $x, $y) = @_;
30 croak 'First arg not an Int' unless is_Int($x);
31 croak 'Second arg not an Int' unless is_Int($y);
39 This package contains a virtual library for L<MooseX::Types> that
40 is able to export all types known to L<Moose>. See L<MooseX::Types>
41 for general usage information.
45 # all available builtin types as short and long name
48 Moose::Util::TypeConstraints->list_all_builtin_type_constraints;
54 Overrides L<MooseX::Types::Base>' C<type_storage> to provide a hash
55 reference containing all built-in L<Moose> types.
59 # use prepopulated builtin hash as type storage
60 sub type_storage { \%BuiltIn_Storage }
64 L<MooseX::Types::Moose>,
66 L<Moose::Util::TypeConstraints>
70 This program is free software; you can redistribute it and/or modify
71 it under the same terms as perl itself.