| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Functor.MaybeLike
Description
Type constructors which can be turned into Maybe.
Documentation
class MaybeLike f where Source #
This class may be defined in two ways:
- Type constructors which can be turned into
Maybegenerically. - Type constructors which admit a natural transformation to
Maybe.
We expect the following rules to hold for those
instances of MaybeLike which are also Alternative: