Types::Common - the one stop shop
This module is covered by the Type-Tiny stability policy.
Types::Common doesn't provide any types or functions of its own. Instead it's a single module that re-exports:
All the types from Types::Standard.
All the types from Types::Common::Numeric and Types::Common::String.
All the types from Types::TypeTiny.
The -sigs tag from Type::Params.
The t() function from Type::Registry.
If you import t(), it will also be preloaded with all the type constraints offered by Types::Common.
use Types::Common qw( -types -sigs t ) might be a sensible place to start.
use Types::Common qw( -types -sigs t )
use Types::Common -all gives you everything.
use Types::Common -all
If you have Perl 5.37.2+, then use Types::Common qw( -lexical -all ) won't pollute your namespace.
use Types::Common qw( -lexical -all )
Please report any bugs to https://github.com/tobyink/p5-type-tiny/issues.
Types::Standard, Types::Common::Numeric, Types::Common::String; Type::Params; Type::Registry.
Toby Inkster <firstname.lastname@example.org>.
This software is copyright (c) 2022-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Type::Tiny, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.