foreach my $constraint (keys %TYPES) {
*{"${pkg}::${constraint}"} = find_type_constraint($constraint)->_compiled_type_constraint;
}
- }
+ }
+
+ sub list_all_type_constraints { keys %TYPES }
}
# type constructors
into the caller's namespace. Right now, this is mostly used for
testing, but it might prove useful to others.
+=item B<list_all_type_constraints>
+
+This will return a list of type constraint names, you can then
+fetch them using C<find_type_constraint ($type_name)> if you
+want to.
+
=back
=head2 Type Constraint Constructors