blockfrost-client-0.4.0.1: blockfrost.io basic client
Safe Haskell None
Language Haskell2010

Blockfrost.Client.Types

Description

Client Types

Synopsis

Documentation

runBlockfrost :: Project -> BlockfrostClientT IO a -> IO ( Either BlockfrostError a) Source #

Run BlockfrostClientT monad in IO , using provided Project

data Project Source #

data SortOrder Source #

go :: MonadBlockfrost m => ( Project -> m a) -> m a Source #

Helper

data AsClientT (m :: Type -> Type ) Source #

A type that specifies that an API record contains a client implementation.

Instances

Instances details
GenericMode ( AsClientT m)
Instance details

Defined in Servant.Client.Core.HasClient

Associated Types

type ( AsClientT m) :- api Source #

type ( AsClientT m) :- api
Instance details

Defined in Servant.Client.Core.HasClient

type ( AsClientT m) :- api = Client m api

fromServant :: GenericServant routes mode => ToServant routes mode -> routes mode Source #

Inverse of toServant .

This can be used to turn generated values such as client functions into records.

You may need to provide a type signature for the output type (your record type).

tryError :: MonadError e m => m a -> m ( Either e a) Source #

MonadError analogue to the try function.

def :: Default a => a Source #

The default value for this type.

newtype BlockfrostClientT m a Source #

Instances

Instances details
Monad m => MonadReader ClientConfig ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

Monad m => MonadError BlockfrostError ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

Monad m => Monad ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

Functor m => Functor ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

Monad m => Applicative ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

MonadIO m => MonadIO ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

MonadIO m => MonadBlockfrost ( BlockfrostClientT m) Source #
Instance details

Defined in Blockfrost.Client.Types

runBlockfrostClientT :: MonadIO m => Project -> BlockfrostClientT m a -> m ( Either BlockfrostError a) Source #

Run BlockfrostClientT , using provided Project

newClientConfig :: MonadIO m => m ClientConfig Source #

Build default ClientConfig using BLOCKFROST_TOKEN_PATH environment variable