• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/MooX/H29-Apr-2020-16691

maint/H29-Apr-2020-106

t/H29-Apr-2020-265211

xt/H29-Apr-2020-10891

ChangesH A D29-Apr-2020970 3424

LICENSEH A D29-Apr-202017.8 KiB375289

MANIFESTH A D29-Apr-2020540 1817

META.jsonH A D29-Apr-20201.6 KiB6665

META.ymlH A D29-Apr-2020853 3130

Makefile.PLH A D10-Apr-20202.6 KiB9279

READMEH A D29-Apr-20201.2 KiB4129

README

1NAME
2    MooX::TypeTiny - Optimized type checks for Moo + Type::Tiny
3
4SYNOPSIS
5      package Some::Moo::Class;
6      use Moo;
7      use MooX::TypeTiny;
8      use Types::Standard qw(Int);
9
10      has attr1 => (is => 'ro', isa => Int);
11
12DESCRIPTION
13    This module optimizes Moo type checks when used with Type::Tiny to
14    perform better. It will automatically apply to isa checks and coercions
15    that use Type::Tiny. Non-Type::Tiny isa checks will work as normal.
16
17    This is done by inlining the type check in a more optimal manner that is
18    specific to Type::Tiny rather than the general mechanism Moo usually
19    uses.
20
21    With this module, setters with type checks should be as fast as an
22    equivalent check in Moose.
23
24    It is hoped that eventually this type inlining will be done
25    automatically, making this module unnecessary.
26
27AUTHOR
28    haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
29
30CONTRIBUTORS
31    None so far.
32
33COPYRIGHT
34    Copyright (c) 2015 the MooX::TypeTiny "AUTHOR" and "CONTRIBUTORS" as
35    listed above.
36
37LICENSE
38    This library is free software and may be distributed under the same
39    terms as perl itself. See <http://dev.perl.org/licenses/>.
40
41