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.
parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text ahttp-api-data Web.HttpApiData Parse values based on a precalculated mapping of their Text representation.
>>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool Right True
For case insensitive parser see parseBoundedEnumOfI.parseBoundedEnumOfI :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text ahttp-api-data Web.HttpApiData Case insensitive. Parse values case insensitively based on a precalculated mapping of their Text representations.
>>> parseBoundedEnumOfI toUrlPiece "FALSE" :: Either Text Bool Right False
For case sensitive parser see parseBoundedEnumOf.lookupBoundedEnumOf :: (Bounded a, Enum a, Eq b) => (a -> b) -> b -> Maybe ahttp-api-data Web.Internal.HttpApiData Lookup values based on a precalculated mapping of their representations.
parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text ahttp-api-data Web.Internal.HttpApiData Parse values based on a precalculated mapping of their Text representation.
>>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool Right True
For case insensitive parser see parseBoundedEnumOfI.parseBoundedEnumOfI :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text ahttp-api-data Web.Internal.HttpApiData Case insensitive. Parse values case insensitively based on a precalculated mapping of their Text representations.
>>> parseBoundedEnumOfI toUrlPiece "FALSE" :: Either Text Bool Right False
For case sensitive parser see parseBoundedEnumOf.MaxFileNumberExceeded :: Int -> RequestParseExceptionwai-extra Network.Wai.Parse No documentation available.
class TypedObject a =>
BoxedEnum ahaskell-gi-base Data.GI.Base.BasicTypes Enums with an associated GType.
get_enum :: Ptr GValue -> IO CUInthaskell-gi-base Data.GI.Base.GValue No documentation available.
set_enum :: Ptr GValue -> CUInt -> IO ()haskell-gi-base Data.GI.Base.GValue No documentation available.
constructObjectPropertyEnum :: (Enum a, BoxedEnum a) => String -> a -> IO (GValueConstruct o)haskell-gi-base Data.GI.Base.Properties No documentation available.