Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. captureNumSamples :: Device -> GettableStateVar NumSamples

    OpenAL Sound.OpenAL.ALC.Capture

    No documentation available.

  2. ALCInvalidEnum :: ALCErrorCategory

    OpenAL Sound.OpenAL.ALC.Errors

    No documentation available.

  3. alcEnumValue :: Maybe Device -> String -> GettableStateVar ALCenum

    OpenAL Sound.OpenAL.ALC.Extensions

    Enumeration/token values are device independent, but tokens defined for extensions might not be present for a given device. Using Nothing as the device is legal, but only the tokens defined by the AL core are guaranteed. Availability of extension tokens depends on the ALC extension.

  4. module AERN2.MP.Float.PreludeNum

    Instances for Prelude classes such as Num, Fractional, using an unspecified rounding.

  5. genFromJSONEnum :: Name -> Q [Dec]

    aeson-schemas Data.Aeson.Schema.TH

    Generate an instance of FromJSON for the given data type. Prefer using mkEnum; this function is useful for data types in which you want greater control over the actual data type. The FromJSON instance will match to a string value matching the constructor name, case-insensitive.

    data State = Open | CLOSED deriving (Show,Enum)
    genFromJSONEnum ''State
    
    -- outputs:
    --   Just Open
    --   Just Open
    --   Just CLOSED
    --   Just CLOSED
    main = mapM_ print
    [ decodeState "open"
    , decodeState "OPEN"
    , decodeState "closed"
    , decodeState "CLOSED"
    ]
    where
    decodeState :: String -> Maybe State
    decodeState = decode . show
    
    

  6. genToJSONEnum :: Name -> Q [Dec]

    aeson-schemas Data.Aeson.Schema.TH

    Generate an instance of ToJSON for the given data type. Prefer using mkEnum; this function is useful for data types in which you want greater control over the actual data type. The ToJSON instance will encode the enum as a string matching the constructor name.

    data State = Open | CLOSED deriving (Show,Enum)
    genToJSONEnum ''State
    
    -- outputs:
    --   "Open"
    --   "CLOSED"
    main = mapM_ print
    [ encode Open
    , encode CLOSED
    ]
    
    

  7. mkEnum :: String -> [String] -> Q [Dec]

    aeson-schemas Data.Aeson.Schema.TH

    Make an enum type with the given constructors, that can be parsed from JSON. The FromJSON instance will match to a string value matching the constructor name, case-insensitive.

    mkEnum "State" ["OPEN", "CLOSED"]
    
    -- generates equivalent of:
    --   data State = OPEN | CLOSED deriving (...)
    --   genFromJSONEnum ''State
    --   genToJSONEnum ''State
    
    

  8. getRateNumden :: T i y (Word, Word)

    alsa-pcm Sound.ALSA.PCM.Parameters.Hardware

    No documentation available.

  9. oneNum :: Num a => a -> a

    backprop Numeric.Backprop.Class

    one for instances of Num. Is lazy in its argument.

  10. c'GLFW_INVALID_ENUM :: Num a => a

    bindings-GLFW Bindings.GLFW

    No documentation available.

Page 168 of many | Previous | Next