|
NAMEMooseX::Extended::Types - Keep our type tools organized VERSIONversion 0.35 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
)];
If you're brave: use MooseX::Extended types => ':all'; But that exports everything and it's easy to have surprising conflicts. DESCRIPTIONA 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 LIBRARIESWe automatically include the types from the following:
EXTRASThe following extra functions are exported on demand or if using the ":all" export tag (but you probably don't want to use that tag). Type::Params
Types::Standard
AUTHORCurtis "Ovid" Poe <curtis.poe@gmail.com> COPYRIGHT AND LICENSEThis software is Copyright (c) 2022 by Curtis "Ovid" Poe. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
|