<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package MooseX::Types::Common; # git description: v0.001013-15-gb03d3d2
# ABSTRACT: A library of commonly used type constraints
# KEYWORDS: moose types classes objects constraints declare libraries strings numbers

our $VERSION = '0.001014';

use strict;
use warnings;
use Carp ();

sub import {
    my $self = shift;
    return unless @_;
    Carp::cluck("Tried to import the symbols " . join(', ', @_)
        . " from MooseX::Types::Common.\nDid you mean "
        . "MooseX::Types::Common::String or MooseX::Type::Common::Numeric?");
}

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

MooseX::Types::Common - A library of commonly used type constraints

=head1 VERSION

version 0.001014

=head1 SYNOPSIS

    use MooseX::Types::Common::String qw/SimpleStr/;
    has short_str =&gt; (is =&gt; 'rw', isa =&gt; SimpleStr);

    ...
    #this will fail
    $object-&gt;short_str("string\nwith\nbreaks");


    use MooseX::Types::Common::Numeric qw/PositiveInt/;
    has count =&gt; (is =&gt; 'rw', isa =&gt; PositiveInt);

    ...
    #this will fail
    $object-&gt;count(-33);

=head1 DESCRIPTION

A set of commonly-used type constraints that do not ship with Moose by default.

=head1 SEE ALSO

=over

=item * L&lt;MooseX::Types::Common::String&gt;

=item * L&lt;MooseX::Types::Common::Numeric&gt;

=item * L&lt;MooseX::Types&gt;

=item * L&lt;Moose::Util::TypeConstraints&gt;

=back

=head1 ORIGIN

This distribution was extracted from the L&lt;Reaction&gt; code base by Guillermo
Roditi (groditi).

=head1 SUPPORT

Bugs may be submitted through L&lt;the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-Common&gt;
(or L&lt;bug-MooseX-Types-Common@rt.cpan.org|mailto:bug-MooseX-Types-Common@rt.cpan.org&gt;).

There is also a mailing list available for users of this distribution, at
L&lt;http://lists.perl.org/list/moose.html&gt;.

There is also an irc channel available for users of this distribution, at
L&lt;C&lt;#moose&gt; on C&lt;irc.perl.org&gt;|irc://irc.perl.org/#moose&gt;.

=head1 AUTHORS

=over 4

=item *

Matt S Trout - mst (at) shadowcatsystems.co.uk (L&lt;http://www.shadowcatsystems.co.uk/&gt;)

=item *

K. James Cheetham &lt;jamie@shadowcatsystems.co.uk&gt;

=item *

Guillermo Roditi &lt;groditi@gmail.com&gt;

=back

=head1 CONTRIBUTORS

=for stopwords Karen Etheridge Justin Hunter Dave Rolsky Tomas Doran Toby Inkster Gregory Oschwald Denis Ibaev Graham Knop Caleb Cushing

=over 4

=item *

Karen Etheridge &lt;ether@cpan.org&gt;

=item *

Justin Hunter &lt;justin.d.hunter@gmail.com&gt;

=item *

Dave Rolsky &lt;autarch@urth.org&gt;

=item *

Tomas Doran &lt;bobtfish@bobtfish.net&gt;

=item *

Toby Inkster &lt;tobyink@cpan.org&gt;

=item *

Gregory Oschwald &lt;oschwald@gmail.com&gt;

=item *

Denis Ibaev &lt;dionys@gmail.com&gt;

=item *

Graham Knop &lt;haarg@haarg.org&gt;

=item *

Gregory Oschwald &lt;goschwald@maxmind.com&gt;

=item *

Caleb Cushing &lt;xenoterracide@gmail.com&gt;

=back

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2009 by Matt S Trout - mst (at) shadowcatsystems.co.uk (L&lt;http://www.shadowcatsystems.co.uk/&gt;).

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>