From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

# ABSTRACT: Packages that can be imported into every module
$Renard::Incunabula::Common::Setup::VERSION = '0.005';
use autodie;
use Return::Type ();
use Try::Tiny ();
use Path::Tiny ();
sub import {
my ($class) = @_;
my $target = caller;
Modern::Perl->import::into( $target );
autodie->import::into( $target );
my %type_tiny_fp_check = ( reify_type => sub { Type::Utils::dwim_type($_[0]) }, );
Function::Parameters->import::into( $target,
{
fun => { defaults => 'function_lax' , %type_tiny_fp_check },
classmethod => { defaults => 'classmethod_lax', %type_tiny_fp_check },
method => { defaults => 'method_lax' , %type_tiny_fp_check },
callback => { defaults => 'function_lax' , %type_tiny_fp_check, check_argument_count => 0 },
}
);
Return::Type->import::into( $target );
Try::Tiny->import::into( $target );
Renard::Incunabula::Common::Error->import::into( $target );
Path::Tiny->import::into( $target );
return;
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Renard::Incunabula::Common::Setup - Packages that can be imported into every module
=head1 VERSION
version 0.005
=head1 AUTHOR
Project Renard
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Project Renard.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut