package PIMYGC::Foo; use Moose; #... use PIMYGC::Types::Library qw /GoogleUrlId/; has 'gcid' => ( is => 'rw', isa => GoogleUrlId, required => 1 );