=item The basis of the TypeContraints module was Rob Kinyon's idea
originally, I just ran with it.
+=item Much love to mst & chansen and the whole #moose poose for all the
+ideas/feature-requests/encouragement
+
=back
=head1 SEE ALSO
sub register_type_constraint {
my ($type_name, $type_constraint) = @_;
+ (not exists $TYPES{$type_name})
+ || confess "The type constraint '$type_name' has already been registered";
$TYPES{$type_name} = $type_constraint;
}
sub register_type_coercion {
my ($type_name, $type_coercion) = @_;
+ (not exists $COERCIONS{$type_name})
+ || confess "The type coercion for '$type_name' has already been registered";
$COERCIONS{$type_name} = $type_coercion;
}
}