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

Changes for version 0.007_06 - 2013-06-16

  • (Addition) Type::Exception is now capable of supplying stack traces (requires Devel::StackTrace).
  • (Documentation) Document the evaluation environment used by Eval::TypeTiny.
  • (Documentation) Rearranged documentation for Type::Utils, avoiding previous split into Moose-like and non-Moose-like functions.
  • Better prototypes (was `;@`, now `;$`) for parameterizable type 'constants' exported by type libraries. ++$MSTROUT
  • Exceptions thrown for Moo isa/coerce now indicate which attribute was involved.
  • Type::Utils no longer exports 'extends' by default!!

Changes for version 0.007_05 - 2013-06-12

  • (Addition) Add match_on_type and compile_match_on_type to Type::Utils.
  • (Addition) Test cases for InstanceOf, ConsumerOf, HasMethods and Enum types defined by Types::Standard.
  • (Documentation) Mention Scalar::Does and Type::Tie in manual.
  • (Documentation) Vastly improved documentation for Type::Utils.
  • (Documentation) Vastly improved documentation for Types::Standard.
  • Support '0' and '1' as shortcuts for Optional[Any] and Any in Type::Params. (Not documented yet.)

Changes for version 0.007_04 - 2013-06-09

  • (Bugfix) Overloading of `$type eq $type` now works in Perl 5.8. ++$MMCLERIC
  • (Bugfix) The combination of Dict, Optional and coercions seems to have been broken in certain circumstances. ++$DJERIUS

Changes for version 0.007_03 - 2013-06-08

  • (Bugfix) Inlining of certain deep Dict, Tuple and Map coercions was broken, but Type::Params attempted to inline them anyway, leading to death. ++$DJERIUS
  • (Documentation) Better document Type::Tiny's 'parents' method which differs from the Moose method of the same name.

Changes for version 0.007_02 - 2013-06-04

  • (Addition) New constraints added to Types::Standard: InstanceOf, ConsumerOf, HasMethods and Enum. ++$HAARG
  • (Documentation) Improvements to Type::Tiny::Manual.
  • (Documentation) Improvements to Type::Tiny::Manual::Params, including rewritten manual processing section, and processing type constraints in function signatures via Function::Parameters/Attribute::Constract.
  • (Packaging) Test cases for usage with Function::Parameters.
  • Allow constraint_generators (for parameterizable type constraints) to return full Type::Tiny objects instead of plain coderefs.
  • Drop use of Carp in Type::Parser.
  • Type::Tiny::Class types now have an automatically calculated parent type constraint based on @ISA.
  • Type::Tiny::Duck types now have a parent type constraint of Types::Standard::Object.
  • Type::Tiny::Enum types now have a parent type constraint of Types::Standard::Str.
  • Type::Tiny::Intersection types now have an arbitrary parent type constraint.
  • Type::Tiny::Role types now have a parent type constraint of Types::Standard::Object.
  • Type::Tiny::Union types now have an automatically calculated parent type constraint based on the most specific common parent type constraint.

Changes for version 0.007_01 - 2013-06-01

  • (Addition) Type::Parser.
  • (Addition) Types::Standard now has LaxNum/StrictNum type constraints, and Num selects between them.
  • (Bugfix) Fix $VERSION defined in Type::Library.
  • (Packaging) Generate README from Type::Tiny::Manual instead of Type::Tiny.
  • Implemented Types::TypeTiny->meta->get_type.
  • Re-introduce Type::Registry, with improved parsing thanks to Type::Parser.

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
parse type constraint strings
a glorified hashref for looking up type constraints
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 and using 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/Parser.pm