This isn't necessary, doesn't do anything, and will interfere with things like
inlining, as the presence of the where clause will make Moose think there's a
real additional constraint on the type.
);
subtype 'Catalyst::Engine::Types::Writer',
- as duck_type([qw(write close)]),
- where { 1 };
+ as duck_type([qw(write close)]);
+
has _writer => (
is => 'ro',
isa => 'Catalyst::Engine::Types::Writer',
use Moose::Util::TypeConstraints;
class_type 'MooseX::Daemonize::Pid::File';
subtype 'Catalyst::Script::Server::Types::Pidfile',
- as 'MooseX::Daemonize::Pid::File',
- where { 1 };
+ as 'MooseX::Daemonize::Pid::File';
+
coerce 'Catalyst::Script::Server::Types::Pidfile', from Str, via {
try { Class::MOP::load_class("MooseX::Daemonize::Pid::File") }
catch {