subtype 'OptInt' => as 'Int'; subtype 'OptStr' => as 'Str'; #### use Types::Standard qw(Maybe Str Int OptInt OptStr); #### has 'xxx' => (is => 'rw', isa => (Maybe[OptInt])->plus_coercions(OptInt, sub{ undef })); #### Could not find sub 'OptInt' to export in package 'Types::Standard' at