MooseX::Method::Signatures has coercion off by default. This is
annoying and I wind up writing "does coerce" a lot. For example:
{
package Baz;
use Moose;
use MooseX::Types::Path::Class;
use MooseX::Method::Signatures;
use MooseX::AlwaysCoerce;
method foo(Path::Class::Dir $dir) {
return $dir->parent;
}
}
my $obj = Baz->new;
print $obj->foo("/this/that");
The above fails validation unless "does coerce" is added to the signature.
It would be great if MooseX::AlwaysCoerce could turn on coercion in
signatures.