Yary has asked for the wisdom of the Perl Monks concerning the following question:
Perhaps this task is foolishness, as the project doesn't require this. In any case, I've hit this stumbling block:
This gives me the error "coercion => 1 requires type to have a direct parent with a coercion" on the line including MooseX::Types::DBIx::Class.package MyApp::Types; use strict; use warnings; use namespace::autoclean; use Type::Library -base; use Type::Utils 'extends'; BEGIN { extends 'Types::Standard'; extends 'MooseX::Types::DBIx::Class'; # extends 'MyApp::Types::Internal'; # Not needed for this } 1; __END__
Does Type::Tiny's strictness about the coercion semantics preclude it from consuming MooseX::Types::DBIx::Class? If so, is there a replacement or work-around?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can Type::Tiny / Type::Library extend MooseX::Types::DBIx::Class?
by tobyink (Canon) on Mar 13, 2015 at 13:58 UTC | |
by Yary (Pilgrim) on Mar 13, 2015 at 14:57 UTC |