Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

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

  1. (/:) :: (a -> b -> c) -> b -> a -> c

    servant-client-core Servant.Client.Core.HasClient

    Convenience function for supplying arguments to client functions when working with records of clients. Intended to be used in conjunction with (//). Example:

    type Api = NamedRoutes RootApi
    
    data RootApi mode = RootApi
    { subApi :: mode :- Capture "token" String :> NamedRoutes SubApi
    , hello :: mode :- Capture "name" String :> Get '[JSON] String
    , …
    } deriving Generic
    
    data SubApi mode = SubApi
    { endpoint :: mode :- Get '[JSON] Person
    , …
    } deriving Generic
    
    api :: Proxy API
    api = Proxy
    
    rootClient :: RootApi (AsClientT ClientM)
    rootClient = client api
    
    hello :: String -> ClientM String
    hello name = rootClient // hello /: name
    
    endpointClient :: ClientM Person
    endpointClient = client // subApi /: "foobar123" // endpoint
    

  2. (/:) :: (a -> b -> c) -> b -> a -> c

    servant-client-core Servant.Client.Core.Reexport

    Convenience function for supplying arguments to client functions when working with records of clients. Intended to be used in conjunction with (//). Example:

    type Api = NamedRoutes RootApi
    
    data RootApi mode = RootApi
    { subApi :: mode :- Capture "token" String :> NamedRoutes SubApi
    , hello :: mode :- Capture "name" String :> Get '[JSON] String
    , …
    } deriving Generic
    
    data SubApi mode = SubApi
    { endpoint :: mode :- Get '[JSON] Person
    , …
    } deriving Generic
    
    api :: Proxy API
    api = Proxy
    
    rootClient :: RootApi (AsClientT ClientM)
    rootClient = client api
    
    hello :: String -> ClientM String
    hello name = rootClient // hello /: name
    
    endpointClient :: ClientM Person
    endpointClient = client // subApi /: "foobar123" // endpoint
    

  3. (.::.) :: Tagged a b -> a -> b

    crypto-api Crypto.Util

    Infix for operator

  4. (/:) :: forall (scheme :: Scheme) . Url scheme -> Text -> Url scheme

    req Network.HTTP.Req

    A type-constrained version of (/~) to remove ambiguity in the cases when next URL piece is a Text literal.

  5. (=:) :: (QueryParam param, ToHttpApiData a) => Text -> a -> param

    req Network.HTTP.Req

    This operator builds a query parameter that will be included in URL of your request after the question sign ?. This is the same syntax you use with form URL encoded request bodies. This operator is defined in terms of queryParam:

    name =: value = queryParam name (pure value)
    

  6. (<:>) :: HeaderName -> ByteString -> MatchHeader

    hspec-wai Test.Hspec.Wai

    No documentation available.

  7. (<:>) :: HeaderName -> ByteString -> MatchHeader

    hspec-wai Test.Hspec.Wai.Matcher

    No documentation available.

  8. (..:) :: Index ix => ix -> ix -> Array D ix ix

    massiv Data.Massiv.Array

    Handy synonym for range Seq

    >>> Ix1 4 ..: 10
    Array D Seq (Sz1 6)
    [ 4, 5, 6, 7, 8, 9 ]
    

  9. (..:) :: Index ix => ix -> ix -> Array D ix ix

    massiv Data.Massiv.Vector

    Handy synonym for range Seq

    >>> Ix1 4 ..: 10
    Array D Seq (Sz1 6)
    [ 4, 5, 6, 7, 8, 9 ]
    

  10. (*:) :: a -> l -> a ::: l

    monoid-extras Data.Monoid.MList

    No documentation available.

Page 82 of many | Previous | Next