Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type RequestPath = ByteString
- type Body = ByteString
- type CBGet a = UserAgentHeader :> Get '[JSON] a
- type CBRequest a = UserAgent -> ClientM a
- run :: Environment -> Runner a
- run_ :: Environment -> Runner ()
- runWithManager :: Manager -> Environment -> Runner a
- type Runner a = ClientM a -> IO a
- emptyBody :: ByteString
- encodeRequestPath :: [Text] -> RequestPath
Documentation
type RequestPath = ByteString Source #
Serialized as a part of building CBAccessSign
type Body = ByteString Source #
Sequenced `ClientM a` that result in `IO a`
run :: Environment -> Runner a Source #
Runs a coinbase pro HTTPS request and returns the result a
run Production products >>= print
runWithManager :: Manager -> Environment -> Runner a Source #
Allows the user to use their own ManagerSettings
with run
do $ mgr <- newManager tlsManagerSettings prds <- runWithManager mgr Production products print prds
encodeRequestPath :: [Text] -> RequestPath Source #