blockfrost-api-0.7.0.0: API definitions for blockfrost.io
Safe HaskellSafe-Inferred
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.

Instances

Instances details
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 #

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 #

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 #

type Rep Env Source # 
Instance details

Defined in Blockfrost.Env

type Rep Env = D1 ('MetaData "Env" "Blockfrost.Env" "blockfrost-api-0.7.0.0-GFqHBUsOl9sJ1HxGcioioy" '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 "Preprod" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Preview" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Localhost" 'PrefixI 'False) (U1 :: Type -> Type))))

parseEnv :: Text -> Either Text Env Source #

Try parsing Env from Text