Commit | Line | Data |
---|---|---|
8af0a70d | 1 | package MooseX::TypeLibrary::Moose; |
2 | use warnings; | |
3 | use strict; | |
4 | ||
5 | use MooseX::TypeLibrary; | |
6 | use Moose::Util::TypeConstraints (); | |
7 | use namespace::clean; | |
8 | ||
9 | # all available builtin types as short and long name | |
10 | my %BuiltIn_Storage | |
11 | = map { ($_) x 2 } | |
12 | Moose::Util::TypeConstraints->list_all_type_constraints; | |
13 | ||
14 | # use prepopulated builtin hash as type storage | |
15 | sub type_storage { \%BuiltIn_Storage } | |
16 | ||
17 | 1; |