package MooseX::Types::Common;
+# ABSTRACT: A library of commonly used type constraints
use strict;
use warnings;
+use Carp qw/cluck/;
-our $VERSION = '0.001000';
+sub import {
+ my $self = shift;
+ return unless @_;
+ 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__
-=head1 NAME
-
-MooseX::Types::Common
+=pod
=head1 SYNOPSIS
$object->short_str("string\nwith\nbreaks");
-
use MooseX::Types::Common::Numeric qw/PositiveInt/;
has count => (is => 'rw', isa => PositiveInt);
=back
-=head1 AUTHORS
+=head1 ORIGIN
This distribution was extracted from the L<Reaction> code base by Guillermo
Roditi (groditi).
-The original authors of this library are:
-
-=over 4
-
-=item * Matt S. Trout
-
-=item * K. J. Cheetham
-
-=item * Guillermo Roditi
-
-=back
-
-=head1 LICENSE
-
-This library is free software, you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
=cut