The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.005_06 - 2013-05-26

  • (Bugfix) Fix StrMatch to properly support regexps containing slashes.
  • Fold Types::Standard::DeepCoercion into Types::Standard.

Changes for version 0.005_05 - 2013-05-24

  • (Addition) Type::Tiny now has an assert_return method, which is used in most places in preference to assert_valid.
  • (Removal) Removed Type::Registry from the release; it will return at a later date.
  • (Update) Suggest newer version of Validation::Class.
  • Fix warnings under Perl 5.18.

Changes for version 0.005_04 - 2013-05-17

  • (Addition) Deep explanations for Types::Standard::{Map,Maybe,Ref,Dict,Tuple} type constraint assertion failures.
  • (Addition) Type::Exception::Compilation.
  • (Bugfix) Fixed bug in non-inlined code for Types::Standard::MkOpt.
  • All error conditions now throw exception objects instead of string error messages.
  • Allow the slurpy tail of a Types::Standard::Tuple to be a treated as a hashref rather than an arrayref.
  • Improved deep explanations for Types::Standard::{ArrayRef,HashRef,ScalarRef}.
  • Test::TypeTiny performs more thorough testing if EXTENDED_TESTING environment variable is set.
  • Throw exception if people attempt to set parent types for Type::Tiny::{Class,Role,Duck,Enum,Union,Intersection}.

Changes for version 0.005_03 - 2013-05-14

  • (Removal) Bytes and Chars type constraints removed from Types::Standard.
  • (Removal) Decode and Encode coercions removed from Types::Standard.
  • Many error conditions now throw exception objects instead of string error messages.

Changes for version 0.005_02 - 2013-05-14

  • (Documentation) Fix a typo in declare_coercion in Type::Tiny::Manual::Coercions. ++$MMCLERIC
  • (Documentation) Link to Type::Tiny::Manual::Libraries instead of non-existing Type::Tiny::Intro. ++$MMCLERIC

Changes for version 0.005_01 - 2013-05-07

  • (Addition) ArrayLike type added to Types::TypeTiny.
  • (Addition) Type::Registry.
  • (Bugfix) Type::Library should require Perl 5.8.1, not 5.8.3.

Documentation

an overview of Type::Tiny
adding coercions to type constraints
how to build a type library with Type::Tiny, Type::Library and Type::Utils
coerce and validate arguments to functions and methods
how to use Type::Tiny and Type::Library with Moo
how to use Type::Tiny and Type::Library with Moose
how to use Type::Tiny and Type::Library with Mouse
how to use Type::Tiny and Type::Library with other OO frameworks

Modules

utility to evaluate a string of Perl code in a clean environment
a small exporter used internally by Type::Library and friends
useful functions for testing the efficacy of type constraints
a set of coercions to a particular target type constraint
a set of coercions to a union type constraint
exceptions for Type::Tiny and friends
exception when a value fails a type constraint
exception for Eval::TypeTiny
exception for Type::Params
tiny, yet Moo(se)-compatible type libraries
Params::Validate-like parameter validation using Type::Tiny type constraints and coercions
tiny, yet Moo(se)-compatible type constraint
type constraints based on the "isa" method
type constraints based on the "can" method
string enum type constraints
intersection type constraints
type constraints based on the "DOES" method
union type constraints
utility functions to make defining type constraints a little easier
bundled set of built-in types for Type::Tiny
type constraints used internally by Type::Tiny

Provides

in lib/Type/Library.pm