| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Reflex.FunctorMaybe
Description
This module defines the FunctorMaybe class, which extends Functors with the ability to delete values.
Synopsis
- class FunctorMaybe f where
Documentation
class FunctorMaybe f where Source #
A class for values that combines filtering and mapping using Maybe.
Morally, . Also similar is the
FunctorMaybe ~ KleisliFunctor MaybeWitherable typeclass, but it requires Foldable f and Traverable f,
and e.g. Event is instance of neither.
A definition of fmapMaybe must satisfy the following laws:
Instances
| FunctorMaybe [] Source # | fmapMaybe = mapMaybe |
Defined in Reflex.FunctorMaybe | |
| FunctorMaybe Maybe Source # | @fmapMaybe = (=<<) |
| FunctorMaybe IntMap Source # | |
| FunctorMaybe (Map k) Source # | |
| FunctorMaybe (MonoidalMap k) Source # | |
Defined in Data.AppendMap Methods fmapMaybe :: (a -> Maybe b) -> MonoidalMap k a -> MonoidalMap k b Source # | |
| HasSpiderTimeline x => FunctorMaybe (Event x) Source # | |
| Reflex t => FunctorMaybe (Event t) Source # | |