Hoogle Search

Within LTS Haskell 24.31 (ghc-9.10.3)

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

  1. minimumBounded :: (Foldable f, Ord a, Bounded a) => f a -> a

    safe Safe.Foldable

    The largest element of a foldable structure. The result is bounded by maxBound.

  2. linesBounded :: forall (m :: Type -> Type) . MonadThrow m => Int -> ConduitT Text Text m ()

    conduit-extra Data.Conduit.Text

    Variant of the lines function with an integer parameter. The text length of any emitted line never exceeds the value of the parameter. Whenever this is about to happen a LengthExceeded exception is thrown. This function should be used instead of the lines function whenever we are dealing with user input (e.g. a file upload) because we can't be sure that user input won't have extraordinarily large lines which would require large amounts of memory if consumed.

  3. gen_Bounded_binds :: SrcSpan -> DerivInstTys -> (LHsBinds GhcPs, Bag AuxBindSpec)

    ghc GHC.Tc.Deriv.Generate

    No documentation available.

  4. parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a

    http-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.

  5. parseBoundedEnumOfI :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a

    http-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.

  6. parseBoundedHeader :: (ToHttpApiData a, Bounded a, Enum a) => ByteString -> Either Text a

    http-api-data Web.HttpApiData

    Parse values based on ToHttpApiData instance. Uses toHeader to get possible values.

  7. parseBoundedQueryParam :: (ToHttpApiData a, Bounded a, Enum a) => Text -> Either Text a

    http-api-data Web.HttpApiData

    Case insensitive. Parse values case insensitively based on ToHttpApiData instance. Uses toQueryParam to get possible values.

  8. parseBoundedTextData :: (Show a, Bounded a, Enum a) => Text -> Either Text a

    http-api-data Web.HttpApiData

    Case insensitive. Parse values case insensitively based on Show instance.

    >>> parseBoundedTextData "true" :: Either Text Bool
    Right True
    
    >>> parseBoundedTextData "FALSE" :: Either Text Bool
    Right False
    
    This can be used as a default implementation for enumeration types:
    >>> data MyData = Foo | Bar | Baz deriving (Show, Bounded, Enum)
    
    >>> instance FromHttpApiData MyData where parseUrlPiece = parseBoundedTextData
    
    >>> parseUrlPiece "foo" :: Either Text MyData
    Right Foo
    

  9. parseBoundedUrlPiece :: (ToHttpApiData a, Bounded a, Enum a) => Text -> Either Text a

    http-api-data Web.HttpApiData

    Case insensitive. Parse values case insensitively based on ToHttpApiData instance. Uses toUrlPiece to get possible values.

  10. lookupBoundedEnumOf :: (Bounded a, Enum a, Eq b) => (a -> b) -> b -> Maybe a

    http-api-data Web.Internal.HttpApiData

    Lookup values based on a precalculated mapping of their representations.

Page 22 of many | Previous | Next