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.

  1. newZeroEnumValue :: MonadIO m => m EnumValue

    gi-gobject GI.GObject.Structs.EnumValue

    Construct a EnumValue struct initialized to zero.

  2. 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 ]
    

  3. 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 ]
    

  4. 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 ]
    

  5. data MaxFragmentEnum

    tls Network.TLS

    No documentation available.

  6. TypeNumber :: Type

    hslua-core HsLua.Core

    type of Lua numbers. See Number

  7. TypeNumber :: Type

    hslua-core HsLua.Core.Types

    type of Lua numbers. See Number

  8. stripeNumber :: Resource a -> !Int

    resource-pool Data.Pool.Introspection

    No documentation available.

  9. boundedEnumCodec :: (Eq enum, Enum enum, Bounded enum) => (enum -> Text) -> JSONCodec enum

    autodocodec 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
    

  10. shownBoundedEnumCodec :: (Show enum, Eq enum, Enum enum, Bounded enum) => JSONCodec enum

    autodocodec 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
    

Page 105 of many | Previous | Next