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

Name

Unexpected::Types - Defines type constraints

Synopsis

   use Unexpected::Types qw(ArrayRef SimplStr);

Description

Defines type constraints used throughout this distribution. The types defined are replacements for those found in MooseX::Types::Common and MooseX::Types::LoadableClass but based on Type::Tiny rather than MooseX::Types

Extends Types::Standard so you can import any TCs that module exports

Configuration and Environment

Defines the following type constraints;

LoadableClass

A classname that is loaded and compiled using require_module

NonEmptySimpleStr

A string of at least one character and no more than 255 characters that contains no newlines

NonNumericSimpleStr

A simple string that does not contain any digits

NonZeroPositiveInt

A non zero positive integer

NonZeroPositiveNum

A non zero positive number

PositiveInt

A positive integer including zero

PositiveNum

A positive number including zero

RequestFactory

Duck type that can; body_params, query_params, uri_for, and uri_params

SimpleStr

A string of than 255 characters that contains no newlines

Tracer

An object reference that implements the frames method

Defines no attributes

Subroutines/Methods

None

Diagnostics

None

Dependencies

namespace::clean
Module::Runtime
Type::Tiny

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2017 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE