|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns Just l where l is first non-blank string in input array; Nothing if no non-blank entries
|
|
|
The firstJustM returns the first Just entry in a list of monadic operations. This is close to
`listToMaybe fmap sequence`, but the sequence operator evaluates all monadic members of the
list before passing it along (i.e. sequence is strict). The firstJustM is lazy in that list
member monads are only evaluated up to the point where the first Just entry is obtained.
|
|
|
The firstJustIO is a slight modification to firstJustM: the
entries in the list must be IO monad operations and the
firstJustIO will silently turn any monad call that throws an
exception into Nothing, basically causing it to be ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |