WGPU.Internal.SMaybe
Contents
Description
data SMaybe a Source #
Strict version of the Maybe type.
Maybe
Constructors
Defined in WGPU.Internal.SMaybe
Methods
(==) :: SMaybe a -> SMaybe a -> Bool #
(/=) :: SMaybe a -> SMaybe a -> Bool #
showsPrec :: Int -> SMaybe a -> ShowS #
show :: SMaybe a -> String #
showList :: [SMaybe a] -> ShowS #
fromSMaybe Source #
Arguments
Default value.
SMaybe from which to return the SJust value if possible.
SMaybe
SJust
SJust value, if present, or the default value, if not.
Return a value from an SMaybe with a default.
This function returns the SJust value from an SMaybe, or the default value if the SMaybe is SNothing.
SNothing