blockfrost-client-0.7.1.1: blockfrost.io basic client
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

apiClient :: MonadBlockfrost m => BlockfrostAPI (AsClientT m) Source #

api0Client :: MonadBlockfrost m => Project -> BlockfrostV0API (AsClientT m) Source #

data Project #

Constructors

Project 

Fields

Instances

Instances details
IsString Project 
Instance details

Defined in Blockfrost.Auth

Methods

fromString :: String -> Project #

Generic Project 
Instance details

Defined in Blockfrost.Auth

Associated Types

type Rep Project :: Type -> Type #

Methods

from :: Project -> Rep Project x #

to :: Rep Project x -> Project #

Show Project 
Instance details

Defined in Blockfrost.Auth

Eq Project 
Instance details

Defined in Blockfrost.Auth

Methods

(==) :: Project -> Project -> Bool #

(/=) :: Project -> Project -> Bool #

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

Defined in Blockfrost.Client.Types

type Rep Project 
Instance details

Defined in Blockfrost.Auth

type Rep Project = D1 ('MetaData "Project" "Blockfrost.Auth" "blockfrost-api-0.8.0.0-9jPVyZRQiil83CVj7Bn3JQ" 'False) (C1 ('MetaCons "Project" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectEnv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Env) :*: S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Paged #

Pagination parameters

Constructors

Paged 

Fields

Instances

Instances details
Show Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

showsPrec :: Int -> Paged -> ShowS #

show :: Paged -> String #

showList :: [Paged] -> ShowS #

Default Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

def :: Paged #

Eq Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

(==) :: Paged -> Paged -> Bool #

(/=) :: Paged -> Paged -> Bool #

Ord Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

compare :: Paged -> Paged -> Ordering #

(<) :: Paged -> Paged -> Bool #

(<=) :: Paged -> Paged -> Bool #

(>) :: Paged -> Paged -> Bool #

(>=) :: Paged -> Paged -> Bool #

max :: Paged -> Paged -> Paged #

min :: Paged -> Paged -> Paged #

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

Helper

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

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 #

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 #

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 #

The default value for this type.

newtype BlockfrostClientT m a Source #

Instances

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

Defined in Blockfrost.Client.Types

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

Defined in Blockfrost.Client.Types

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

Defined in Blockfrost.Client.Types

Methods

liftIO :: IO a -> BlockfrostClientT m a #

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

Defined in Blockfrost.Client.Types

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

Defined in Blockfrost.Client.Types

Methods

fmap :: (a -> b) -> BlockfrostClientT m a -> BlockfrostClientT m b #

(<$) :: a -> BlockfrostClientT m b -> BlockfrostClientT m a #

Monad m => Monad (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