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.
captureNumSamples :: Device -> GettableStateVar NumSamplesOpenAL Sound.OpenAL.ALC.Capture No documentation available.
ALCInvalidEnum :: ALCErrorCategoryOpenAL Sound.OpenAL.ALC.Errors No documentation available.
alcEnumValue :: Maybe Device -> String -> GettableStateVar ALCenumOpenAL 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.
module AERN2.MP.Float.
PreludeNum Instances for Prelude classes such as Num, Fractional, using an unspecified rounding.
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
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 ]
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
getRateNumden :: T i y (Word, Word)alsa-pcm Sound.ALSA.PCM.Parameters.Hardware No documentation available.
-
backprop Numeric.Backprop.Class c'GLFW_INVALID_ENUM :: Num a => abindings-GLFW Bindings.GLFW No documentation available.