-
-
14 Aug 2022 09:20:04 UTC
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (494 / 1 / 0)
- Kwalitee
Bus factor: 2- 86.20% Coverage
- License: perl_5
- Perl: v5.6.1
- Activity
24 month- Tools
- Download (473.58KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 30 contributors-
Diab Jerius (DJERIUS)
-
Vyacheslav Matyukhin (MMCLERIC)
-
Peter Flanigan (PJFL)
- Pierre Masci
-
Mark Stosberg (MARKSTOS)
-
David Steinbrunner
-
Samuel Kaufman (SKAUFMAN)
-
Graham Knop (HAARG)
-
Peter Karman (KARMAN)
-
Alexander Hartmaier (ABRAXXA)
-
Dagfinn Ilmari Mannsåker (ILMARI)
-
Gianni Ceccarelli (DAKKAR)
-
Karen Etheridge (ETHER)
-
Thomas Sibley (TSIBLEY)
-
Peter Valdemar Mørch
-
Zoffix Znet
-
Denis Ibaev
-
Lucas Buchala (LSBUCHALA)
-
Alexandr Ciornii
-
Philippe Bruhat (BOOK)
-
Robert Rothenberg (RRWO)
- Nelo Onyiah
-
Jonas B Nielsen (JONASBN)
-
Benct Philip Jonsson
-
Hauke D (HAUKEX)
-
Meredith Howard (MHOWARD)
-
Andrew Ruder (AERUDER)
-
Sandor Patocs (SPATOCS)
- Windymelt
-
Lucas Tiago de Moraes (LUCAS)
- Dependencies
- Exporter::Tiny
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Changes for version 1.016008 - 2022-08-14
- Added: Type::Params now has a `goto_next` option, which if set to a coderef will generate a signature which on success, instead of returning @_, passes @_ to the coderef. If `goto_next` is set to true, the signature instead expects to be passed such a coderef as its first argument.
- Eval::TypeTiny::CodeAccumulator now better handles placeholders.
- Type::Params `wrap_subs` and `wrap_methods` internally use `goto_next`.
Documentation
an overview of Type::Tinyalphabetical list of all type constraints bundled with Type::Tinyadvanced information on coercionscontributing to Type::Tiny development.how to install Type::Tinydefining your own type librariesType::Tiny in non-object-oriented codesqueeze the most out of your CPUadvanced information on Type::ParamsType::Tiny policiesuse of Type::Tiny with Class::Tinyhow to use Type::Tiny with Mitebasic use of Type::Tiny with Mooadvanced use of Type::Tiny with Mooalternative use of Type::Tiny with Moohow to use Type::Tiny with Moosehow to use Type::Tiny with Mouseusing Type::Tiny with Class::InsideOut, Params::Check, and Object::Accessor.Type::Tiny for test suitesModules
shims to allow Type::Tiny to run on Perl 5.6.xshims to allow Type::Tiny to run on Perl 5.8.xexceptions for Type::Tiny and friendsexception when a value fails a type constraintexception for Eval::TypeTinyexception for Type::Paramsutility to evaluate a string of Perl code in a clean environmentalternative API for Eval::TypeTinyimproved type constraint exceptions in Replyuseful functions for testing the efficacy of type constraintsa set of coercions to a particular target type constrainta set of coercions borrowed from Moosea set of coercions to a union type constrainttiny, yet Moo(se)-compatible type librariesParams::Validate-like parameter validation using Type::Tiny type constraints and coercionsparse type constraint stringsa glorified hashref for looking up type constraintstiny, yet Moo(se)-compatible type constrainttype constraints based on the "isa" methodshared behavour for Type::Tiny::Class, etctype constraints based on the "can" methodstring enum type constraintsintersection type constraintstype constraints based on the "DOES" methodunion type constraintshalf-completed overloaded operationutility functions to make defining and using type constraints a little easierdrop-in replacement for MooseX::Types::Common::Numericdrop-in replacement for MooseX::Types::Common::Stringbundled set of built-in types for Type::Tinyinternals for the Types::Standard ArrayRef type constraintinternals for the Types::Standard CycleTuple type constraintinternals for the Types::Standard Dict type constraintinternals for the Types::Standard HashRef type constraintinternals for the Types::Standard Map type constraintinternals for the Types::Standard ScalarRef type constraintinternals for the Types::Standard StrMatch type constraintinternals for the Types::Standard Tied type constraintinternals for the Types::Standard Tuple type constrainttype constraints used internally by Type::TinyProvides
in lib/Type/Params/Parameter.pmin lib/Type/Params/Signature.pmin lib/Type/Parser.pmin lib/Type/Parser.pmin lib/Type/Parser.pmExamples
- examples/benchmarking/benchmark-coercions.pl
- examples/benchmarking/benchmark-constraints.pl
- examples/benchmarking/benchmark-named-param-validation.pl
- examples/benchmarking/benchmark-param-validation.pl
- examples/benchmarking/versus-scalar-validation.pl
- examples/datetime-coercions.pl
- examples/jsoncapable.pl
- examples/nonempty.pl
- examples/page-numbers.pl
Module Install Instructions
To install Type::Tiny, copy and paste the appropriate command in to your terminal.
cpanm Type::Tiny
perl -MCPAN -e shell install Type::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.