MooseX::Extended::Types - Keep our type tools orgnanized
version 0.02
package MooseX::Extended::Types; use MooseX::Extended::Types qw( ArrayRef Dict Enum HashRef InstanceOf Str compile );
A basic set of useful types for MooseX::Extended. Using these is preferred to using using strings due to runtime versus compile-time failures. For example:
MooseX::Extended
# fails at runtime, if ->name is set param name => ( isa => 'StR' ); # fails at compile-time param name => ( isa => StR );
We automatically include the types from the following:
Types::Standard
Types::Common::Numeric
Types::Common::String
The following extra functions are exported on demand or if use the :all export tag.
:all
compile
See Type::Params
compile_named
slurpy
See Types::Standard
Curtis "Ovid" Poe <curtis.poe@gmail.com>
This software is Copyright (c) 2022 by Curtis "Ovid" Poe.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install MooseX::Extended, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Extended
CPAN shell
perl -MCPAN -e shell install MooseX::Extended
For more information on module installation, please visit the detailed CPAN module installation guide.