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