blockfrost-api-0.5.0.0: API definitions for blockfrost.io
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Env

Description

Blockfrost environments

Synopsis

Documentation

data Env Source #

Blockfrost environments

Corresponds to Network when creating a Blockfrost project. Each environment has separate token.

Constructors

Ipfs 
Mainnet 
Testnet 
Localhost 

Instances

Instances details
Eq Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

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

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

Ord Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

compare :: Env -> Env -> Ordering #

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

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

(>) :: Env -> Env -> Bool #

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

max :: Env -> Env -> Env #

min :: Env -> Env -> Env #

Read Env Source # 
Instance details

Defined in Blockfrost.Env

Show Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

showsPrec :: Int -> Env -> ShowS #

show :: Env -> String #

showList :: [Env] -> ShowS #

Generic Env Source # 
Instance details

Defined in Blockfrost.Env

Associated Types

type Rep Env :: Type -> Type #

Methods

from :: Env -> Rep Env x #

to :: Rep Env x -> Env #

type Rep Env Source # 
Instance details

Defined in Blockfrost.Env

type Rep Env = D1 ('MetaData "Env" "Blockfrost.Env" "blockfrost-api-0.5.0.0-Dq7ldHLZc04CRjC4qvXEA7" 'False) ((C1 ('MetaCons "Ipfs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Localhost" 'PrefixI 'False) (U1 :: Type -> Type)))

parseEnv :: Text -> Either Text Env Source #

Try parsing Env from Text