diff options
Diffstat (limited to 'lib/Net/Hawk/Types.pm')
-rw-r--r-- | lib/Net/Hawk/Types.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Net/Hawk/Types.pm b/lib/Net/Hawk/Types.pm new file mode 100644 index 0000000..e1caec3 --- /dev/null +++ b/lib/Net/Hawk/Types.pm @@ -0,0 +1,14 @@ +package Net::Hawk::Types; +use strict; +use warnings; +use 5.010; +use Type::Library + -base, + -declare => qw(Algorithm); +use Type::Utils -all; +use Types::Standard qw(Str Enum); + +declare Algorithm, as Enum[qw(sha1 sha256)]; + +1; + |