Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Maybe.Strict
Description
Strict version of the
Maybe
type.
Synopsis
- data StrictMaybe a
- strictMaybeToMaybe :: StrictMaybe a -> Maybe a
- maybeToStrictMaybe :: Maybe a -> StrictMaybe a
- fromSMaybe :: a -> StrictMaybe a -> a
- isSNothing :: StrictMaybe a -> Bool
- isSJust :: StrictMaybe a -> Bool
- strictMaybe :: a -> (b -> a) -> StrictMaybe b -> a
Documentation
data StrictMaybe a Source #
Instances
Conversion: StrictMaybe -- Maybe
strictMaybeToMaybe :: StrictMaybe a -> Maybe a Source #
maybeToStrictMaybe :: Maybe a -> StrictMaybe a Source #
Accessing the underlying value
fromSMaybe :: a -> StrictMaybe a -> a Source #
Same as
fromMaybe
isSNothing :: StrictMaybe a -> Bool Source #
Same as
isNothing
strictMaybe :: a -> (b -> a) -> StrictMaybe b -> a Source #
Same as
maybe