n2o-protocols-0.11.2: N2O Protocols Starter Pack

Safe HaskellSafe
LanguageHaskell2010

Data.BERT

Synopsis

Documentation

data Term Source #

A single BERT term.

Instances
Eq Term Source # 
Instance details

Defined in Data.BERT

Methods

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

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

Ord Term Source # 
Instance details

Defined in Data.BERT

Methods

compare :: Term -> Term -> Ordering #

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

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

(>) :: Term -> Term -> Bool #

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

max :: Term -> Term -> Term #

min :: Term -> Term -> Term #

Read Term Source # 
Instance details

Defined in Data.BERT

Show Term Source # 
Instance details

Defined in Data.BERT

Methods

showsPrec :: Int -> Term -> ShowS #

show :: Term -> String #

showList :: [Term] -> ShowS #

Binary Term Source # 
Instance details

Defined in Data.BERT

Methods

put :: Term -> Put #

get :: Get Term #

putList :: [Term] -> Put #

BERT Term Source # 
Instance details

Defined in Data.BERT

ct :: String -> [Term] -> Term Source #

class BERT a where Source #

Minimal complete definition

showBERT, readBERT

Methods

showBERT :: a -> Term Source #

Introduce a Term from a Haskell value.

readBERT :: Term -> Either String a Source #

Attempt to read a haskell value from a Term.

Instances
BERT Bool Source # 
Instance details

Defined in Data.BERT

BERT Float Source # 
Instance details

Defined in Data.BERT

BERT Int Source # 
Instance details

Defined in Data.BERT

BERT Integer Source # 
Instance details

Defined in Data.BERT

BERT String Source # 
Instance details

Defined in Data.BERT

BERT ByteString Source # 
Instance details

Defined in Data.BERT

BERT Term Source # 
Instance details

Defined in Data.BERT

BERT a => BERT [a] Source # 
Instance details

Defined in Data.BERT

Methods

showBERT :: [a] -> Term Source #

readBERT :: Term -> Either String [a] Source #

(BERT a, BERT b) => BERT (a, b) Source # 
Instance details

Defined in Data.BERT

Methods

showBERT :: (a, b) -> Term Source #

readBERT :: Term -> Either String (a, b) Source #

(Ord k, BERT k, BERT v) => BERT (Map k v) Source # 
Instance details

Defined in Data.BERT

Methods

showBERT :: Map k v -> Term Source #

readBERT :: Term -> Either String (Map k v) Source #

(BERT a, BERT b, BERT c) => BERT (a, b, c) Source # 
Instance details

Defined in Data.BERT

Methods

showBERT :: (a, b, c) -> Term Source #

readBERT :: Term -> Either String (a, b, c) Source #

(BERT a, BERT b, BERT c, BERT d) => BERT (a, b, c, d) Source # 
Instance details

Defined in Data.BERT

Methods

showBERT :: (a, b, c, d) -> Term Source #

readBERT :: Term -> Either String (a, b, c, d) Source #

putTerm :: Term -> PutM () Source #

Binary encoding of a single term (without header)

getTerm :: Get Term Source #

Binary decoding of a single term (without header)

putBigint :: (Integral a1, Bits a1) => (Int -> PutM a2) -> a1 -> PutM () Source #

getBigint :: (Integral a, Num b) => Get a -> Get b Source #

put8u :: Integral a => a -> Put Source #

put16u :: Integral a => a -> Put Source #

put32u :: Integral a => a -> Put Source #

put32s :: Integral a => a -> Put Source #