perl-MooseX-Types - Organise your Moose types in libraries

Distribution: openSUSE 42.1
Repository: openSUSE Oss all
Package name: perl-MooseX-Types
Package version: 0.46
Package release: 1.1
Package architecture: noarch
Package type: rpm
Installed size: 119.89 KB
Download size: 61.27 KB
Official Mirror:
The type system provided by Moose effectively makes all of its builtin type global, as are any types you declare with Moose. This means that every module that declares a type named 'PositiveInt' is sharing the same type object. This can be a problem when different parts of the code base want to use the same name for different things. This package lets you declare types using short names, but behind the scenes it namespaces all your type declarations, effectively prevent name clashes between packages. This is done by creating a type library module like 'MyApp::Types' and then importing types from that module into other modules. As a side effect, the declaration mechanism allows you to write type names as barewords (really function calls), which catches typos in names at compile time rather than run time. This module also provides some helper functions for using Moose types outside of attribute declarations. If you mix string-based names with types created by this module, it will warn, with a few exceptions. If you are declaring a 'class_type()' or 'role_type()' within your type library, or if you use a fully qualified name like '"MyApp::Foo"'.



  • perl(MooseX::Types) = 0.46
  • perl(MooseX::Types::Base) = 0.46
  • perl(MooseX::Types::CheckedUtilExports) = 0.46
  • perl(MooseX::Types::Combine) = 0.46
  • perl(MooseX::Types::Moose) = 0.46
  • perl(MooseX::Types::TypeDecorator) = 0.46
  • perl(MooseX::Types::UndefinedType) = 0.46
  • perl(MooseX::Types::Util) = 0.46
  • perl(MooseX::Types::Wrapper) = 0.46
  • perl-MooseX-Types = 0.46-1.1

    Install Howto

    Install perl-MooseX-Types rpm package:

    # zypper install perl-MooseX-Types