Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
newZeroEnumValue :: MonadIO m => m EnumValuegi-gobject GI.GObject.Structs.EnumValue Construct a EnumValue struct initialized to zero.
setEnumValueValue :: MonadIO m => EnumValue -> Int32 -> m ()gi-gobject GI.GObject.Structs.EnumValue Set the value of the “value” field. When overloading is enabled, this is equivalent to
set enumValue [ #value := value ]
setEnumValueValueName :: MonadIO m => EnumValue -> CString -> m ()gi-gobject GI.GObject.Structs.EnumValue Set the value of the “value_name” field. When overloading is enabled, this is equivalent to
set enumValue [ #valueName := value ]
setEnumValueValueNick :: MonadIO m => EnumValue -> CString -> m ()gi-gobject GI.GObject.Structs.EnumValue Set the value of the “value_nick” field. When overloading is enabled, this is equivalent to
set enumValue [ #valueNick := value ]
-
tls Network.TLS No documentation available.
-
hslua-core HsLua.Core type of Lua numbers. See Number
-
hslua-core HsLua.Core.Types type of Lua numbers. See Number
stripeNumber :: Resource a -> !Intresource-pool Data.Pool.Introspection No documentation available.
boundedEnumCodec :: (Eq enum, Enum enum, Bounded enum) => (enum -> Text) -> JSONCodec enumautodocodec Autodocodec A codec for a Bounded Enum that uses the provided function to have the values correspond to literal Text values.
Example usage
>>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded) >>> :{ let c = boundedEnumCodec $ \case Apple -> "foo" Orange -> "bar" :}>>> toJSONVia c Apple String "foo" >>> JSON.parseMaybe (parseJSONVia c) (String "bar") :: Maybe Fruit Just Orange
shownBoundedEnumCodec :: (Show enum, Eq enum, Enum enum, Bounded enum) => JSONCodec enumautodocodec Autodocodec A codec for a Bounded Enum that uses its Show instance to have the values correspond to literal Text values.
Example usage
>>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded) >>> let c = shownBoundedEnumCodec >>> toJSONVia c Apple String "Apple" >>> JSON.parseMaybe (parseJSONVia c) (String "Orange") :: Maybe Fruit Just Orange