Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. sequenceA :: (Traversable t, Applicative f) => t (f a) -> f (t a)

    relude Relude.Foldable.Reexport

    Evaluate each action in the structure from left to right, and collect the results. For a version that ignores the results see sequenceA_.

    Examples

    Basic usage: For the first two examples we show sequenceA fully evaluating a a structure and collecting the results.
    >>> sequenceA [Just 1, Just 2, Just 3]
    Just [1,2,3]
    
    >>> sequenceA [Right 1, Right 2, Right 3]
    Right [1,2,3]
    
    The next two example show Nothing and Just will short circuit the resulting structure if present in the input. For more context, check the Traversable instances for Either and Maybe.
    >>> sequenceA [Just 1, Just 2, Just 3, Nothing]
    Nothing
    
    >>> sequenceA [Right 1, Right 2, Right 3, Left 4]
    Left 4
    

  2. sequenceA_ :: (Foldable t, Applicative f) => t (f a) -> f ()

    relude Relude.Foldable.Reexport

    Evaluate each action in the structure from left to right, and ignore the results. For a version that doesn't ignore the results see sequenceA. sequenceA_ is just like sequence_, but generalised to Applicative actions.

    Examples

    Basic usage:
    >>> sequenceA_ [print "Hello", print "world", print "!"]
    "Hello"
    "world"
    "!"
    

  3. sequence_ :: (Foldable t, Monad m) => t (m a) -> m ()

    relude Relude.Foldable.Reexport

    Evaluate each monadic action in the structure from left to right, and ignore the results. For a version that doesn't ignore the results see sequence. sequence_ is just like sequenceA_, but specialised to monadic actions.

  4. subsequences :: [a] -> [[a]]

    relude Relude.List.Reexport

    The subsequences function returns the list of all subsequences of the argument.

    Laziness

    subsequences does not look ahead unless it must:
    >>> take 1 (subsequences undefined)
    [[]]
    
    >>> take 2 (subsequences ('a' : undefined))
    ["","a"]
    

    Examples

    >>> subsequences "abc"
    ["","a","b","ab","c","ac","bc","abc"]
    
    This function is productive on infinite inputs:
    >>> take 8 $ subsequences ['a'..]
    ["","a","b","ab","c","ac","bc","abc"]
    

  5. newtype AuthenticatedRequest a

    servant-client-core Servant.Client.Core

    For better type inference and to avoid usage of a data family, we newtype wrap the combination of some AuthClientData and a function to add authentication data to a request NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE

  6. AuthenticatedRequest :: (AuthClientData a, AuthClientData a -> Request -> Request) -> AuthenticatedRequest a

    servant-client-core Servant.Client.Core

    No documentation available.

  7. type Request = RequestF RequestBody Builder

    servant-client-core Servant.Client.Core

    No documentation available.

  8. Request :: path -> Seq QueryItem -> Maybe (body, MediaType) -> Seq MediaType -> Seq Header -> HttpVersion -> Method -> RequestF body path

    servant-client-core Servant.Client.Core

    No documentation available.

  9. data RequestBody

    servant-client-core Servant.Client.Core

    The request body. R replica of the http-client RequestBody.

  10. RequestBodyBS :: ByteString -> RequestBody

    servant-client-core Servant.Client.Core

    No documentation available.

Page 300 of many | Previous | Next