File: Types.pm

package info (click to toggle)
libtangence-perl 0.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: perl: 6,076; makefile: 15
file content (57 lines) | stat: -rw-r--r-- 1,279 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#  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.33;

use v5.26;
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->make( "bool" );
use constant TYPE_U8   => Tangence::Type->make( "u8" );
use constant TYPE_INT  => Tangence::Type->make( "int" );
use constant TYPE_STR  => Tangence::Type->make( "str" );
use constant TYPE_OBJ  => Tangence::Type->make( "obj" );
use constant TYPE_ANY  => Tangence::Type->make( "any" );

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

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

=head1 NAME

C<Tangence::Types> - type constants for C<Tangence>

=head1 DESCRIPTION

This module is a component of L<Tangence::Client> or L<Tangence::Server>. It
is not intended for end-user use directly.

=cut

=head1 AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

=cut

0x55AA;