summaryrefslogtreecommitdiff
path: root/lib/Tangence/Types.pm
blob: 251f896e9b8ce6069b489148c5e34fc04abb69bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#  You may distribute under the terms of either the GNU General Public License
#  or the Artistic License (the same terms as Perl itself)
#
#  (C) Paul Evans, 2014 -- leonerd@leonerd.org.uk

package Tangence::Types 0.26;

use v5.14;
use warnings;

use Exporter 'import';
our @EXPORT = qw(
   TYPE_BOOL
   TYPE_U8
   TYPE_INT
   TYPE_STR
   TYPE_OBJ
   TYPE_ANY

   TYPE_LIST_STR
   TYPE_LIST_ANY

   TYPE_DICT_ANY
);

use Tangence::Type;

use constant TYPE_BOOL => Tangence::Type->new( "bool" );
use constant TYPE_U8   => Tangence::Type->new( "u8" );
use constant TYPE_INT  => Tangence::Type->new( "int" );
use constant TYPE_STR  => Tangence::Type->new( "str" );
use constant TYPE_OBJ  => Tangence::Type->new( "obj" );
use constant TYPE_ANY  => Tangence::Type->new( "any" );

use constant TYPE_LIST_STR => Tangence::Type->new( list => TYPE_STR );
use constant TYPE_LIST_ANY => Tangence::Type->new( list => TYPE_ANY );

use constant TYPE_DICT_ANY => Tangence::Type->new( dict => TYPE_ANY );

0x55AA;