use Moo; use MyApp::Zoo::Types qw(Kangaroo); has mascot => (is => 'ro', isa => Kangaroo);