NAME

MouseX::Types::Data::Monad::Maybe - A type constraint for Data::Monad::Maybe

SYNOPSIS

use Data::Monad::Maybe qw( just nothing );
use MouseX::Types::Data::Monad::Maybe;
use Smart::Args qw( args );

sub from_api {
  args my $json => 'MaybeM[HashRef]';
  $json->flat_map(sub {
    # ...
  });
}

from_api(just +{ ok => 1 });
from_api(nothing);

DESCRIPTION

MouseX::Types::Data::Monad::Maybe defines a type constraint for Data::Monad::Maybe.

SEE ALSO

Mouse, Data::Monad::Maybe

LICENSE

Copyright (C) aereal.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

aereal <aereal@aereal.org>