NAME
    %s - type constraint library

TYPES
    CODE }

    sub _compile_pod_type { my ( $self, $type ) = ( shift, @_ );

            my $name = $type->name;

            return sprintf <<'CODE', $name, $type->library, $name, $name, $name, $self->destination_module, $name;
    =head2 B<< %s >>

    As originally defined in %s.

    The %s constant returns a blessed type constraint object. `is_%s($value)`
    checks a value against the type and returns a boolean. `assert_%s($value)`
    checks a value against the type and throws an error.

    To import all of these functions:

      use %s qw( :%s );

    CODE }

    sub _compile_pod_footer { my $self = shift;

            return <<'CODE';

NAME
    Type::Library::Compiler - compile a bunch of type constraints into a
    library with no non-core dependencies

SYNOPSIS
      type-library-compiler --module=MyApp::Types Types::Standard=-all

DESCRIPTION
    This class performs the bulk of the work for type-library-compiler.

  Constructor
   `new( %attributes )`
  Attributes
   `types` ArrayRef[Object]
    Required array of Type::Tiny objects.

   `pod` Bool
    Should the generated module include pod? Defaults to true.

   `destination_module` Str
    Required Perl module name to produce.

   `constraint_module` Str
    Leave this as the default.

   `destination_filename` Str
    Leave this as the default.

  Object Methods
   `compile_to_file()`
    Writes the module to `destination_filename`.

   `compile_to_string()`
    Returns the module as a string of Perl code.

  Class Methods
   `parse_list( @argv )`
    Parses a list of strings used to specify type constraints on the command
    line, and returns an arrayref of Type::Tiny objects, suitable for the
    `types` attribute.

BUGS
    Please report any bugs to
    <https://github.com/tobyink/p5-type-library-compiler/issues>.

SEE ALSO
    Mite, Type::Library, Type::Tiny.

AUTHOR
    Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE
    This software is copyright (c) 2022 by Toby Inkster.

    This is free software; you can redistribute it and/or modify it under the
    same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES
    THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
    WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
    MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

