NAME
MooseX::Extended::Types - Keep our type tools organized
VERSION
version 0.26
SYNOPSIS
use MooseX::Extended;
use MooseX::Extended::Types;
use MooseX::Extended::Types qw(
ArrayRef
Dict
Enum
HashRef
InstanceOf
Str
compile
);
As a convenience, if you're using MooseX::Extended, you can do this:
use MooseX::Extended types => [qw(
ArrayRef
Dict
Enum
HashRef
InstanceOf
Str
compile
)];
DESCRIPTION
A basic set of useful types for MooseX::Extended
, as provided by Type::Tiny. Using these is preferred to using using strings due to runtime versus compile-time failures. For example:
# fails at runtime, if ->name is set
param name => ( isa => 'str' );
# fails at compile-time
param name => ( isa => str );
TYPE LIBRARIES
We automatically include the types from the following:
EXTRAS
The following extra functions are exported on demand or if use the :all
export tag.
compile
See Type::Params
compile_named
See Type::Params
slurpy
See Types::Standard
AUTHOR
Curtis "Ovid" Poe <curtis.poe@gmail.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2022 by Curtis "Ovid" Poe.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)