<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package MooseX::Types::Moose;
{
  $MooseX::Types::Moose::VERSION = '0.35';
}

# ABSTRACT: Type exports that match the types shipped with L&lt;Moose&gt;

use warnings;
use strict;

use MooseX::Types;
use Moose::Util::TypeConstraints ();

use namespace::clean -except =&gt; [qw( meta )];


# all available builtin types as short and long name
my %BuiltIn_Storage 
  = map { ($_) x 2 } 
    Moose::Util::TypeConstraints-&gt;list_all_builtin_type_constraints;


# use prepopulated builtin hash as type storage
sub type_storage { \%BuiltIn_Storage }


1;

__END__
=pod

=head1 NAME

MooseX::Types::Moose - Type exports that match the types shipped with L&lt;Moose&gt;

=head1 VERSION

version 0.35

=head1 SYNOPSIS

  package Foo;
  use Moose;
  use MooseX::Types::Moose qw( ArrayRef Int Str );
  use Carp qw( croak );

  has 'name',
    is  =&gt; 'rw',
    isa =&gt; Str;

  has 'ids',
    is  =&gt; 'rw',
    isa =&gt; ArrayRef[Int];

  sub add {
      my ($self, $x, $y) = @_;
      croak 'First arg not an Int'  unless is_Int($x);
      croak 'Second arg not an Int' unless is_Int($y);
      return $x + $y;
  }

  1;

=head1 DESCRIPTION

This package contains a virtual library for L&lt;MooseX::Types&gt; that
is able to export all types known to L&lt;Moose&gt;. See L&lt;MooseX::Types&gt;
for general usage information.

=head1 METHODS

=head2 type_storage

Overrides L&lt;MooseX::Types::Base&gt;' C&lt;type_storage&gt; to provide a hash
reference containing all built-in L&lt;Moose&gt; types.

=head1 SEE ALSO

L&lt;MooseX::Types::Moose&gt;,
L&lt;Moose&gt;, 
L&lt;Moose::Util::TypeConstraints&gt;

=head1 LICENSE

This program is free software; you can redistribute it and/or modify
it under the same terms as perl itself.

=head1 AUTHOR

Robert "phaylon" Sedlacek &lt;rs@474.at&gt;

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Robert "phaylon" Sedlacek.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut

</pre></body></html>