strict-containers-0.1.0.0: Various strict container types
Safe Haskell None
Language Haskell2010

Data.Maybe.Strict

Description

Strict version of the Maybe type.

Synopsis

Documentation

data StrictMaybe a Source #

Constructors

SNothing
SJust !a

Instances

Instances details
Monad StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

Functor StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

MonadFail StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

Applicative StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

Foldable StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

Traversable StrictMaybe Source #
Instance details

Defined in Data.Maybe.Strict

Eq a => Eq ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

Ord a => Ord ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

Show a => Show ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

Generic ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

Associated Types

type Rep ( StrictMaybe a) :: Type -> Type Source #

ToJSON a => ToJSON ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

FromJSON a => FromJSON ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

ToCBOR a => ToCBOR ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

FromCBOR a => FromCBOR ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

NFData a => NFData ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

Default ( StrictMaybe t) Source #
Instance details

Defined in Data.Maybe.Strict

NoThunks a => NoThunks ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

type Rep ( StrictMaybe a) Source #
Instance details

Defined in Data.Maybe.Strict

type Rep ( StrictMaybe a) = D1 (' MetaData "StrictMaybe" "Data.Maybe.Strict" "strict-containers-0.1.0.0-LCiCzdIbvA0LutM86eIzNe" ' False ) ( C1 (' MetaCons "SNothing" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "SJust" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 a)))

Conversion: StrictMaybe -- Maybe

Accessing the underlying value

strictMaybe :: a -> (b -> a) -> StrictMaybe b -> a Source #

Same as maybe