=head2 Library Definition
package MyLibrary;
- use strict;
# predeclare our own types
use MooseX::Types
Note that you currently cannot define types containing C<::>, since
exporting would be a problem.
+You also don't need to use C<warnings> and C<strict>, since the
+definition of a library automatically exports those.
+
=head1 LIBRARY USAGE
You can import the L<"type helpers"|/"TYPE HANDLER FUNCTIONS"> of a
my ($class, %args) = @_;
my $callee = caller;
+ # everyone should want this
+ strict->import;
+ warnings->import;
+
# inject base class into new library
{ no strict 'refs';
unshift @{ $callee . '::ISA' }, 'MooseX::Types::Base';