cardano-binary-1.7.1.0: Binary serialization for Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Binary.TreeDiff

Synopsis

Documentation

showDecoderErrorBuildable e ⇒ e → String Source #

showExprToExpr a ⇒ a → String Source #

newtype HexBytes Source #

Wraps regular ByteString, but shows and diffs it as hex

Constructors

HexBytes 

Fields

Instances

Instances details
Show HexBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

Methods

showsPrec ∷ Int → HexBytes → ShowS

showHexBytes → String

showList ∷ [HexBytes] → ShowS

Eq HexBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

Methods

(==)HexBytesHexBytes → Bool

(/=)HexBytesHexBytes → Bool

ToExpr HexBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

newtype CBORBytes Source #

Constructors

CBORBytes 

Fields

Instances

Instances details
Show CBORBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

Methods

showsPrec ∷ Int → CBORBytes → ShowS

showCBORBytes → String

showList ∷ [CBORBytes] → ShowS

Eq CBORBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

Methods

(==)CBORBytesCBORBytes → Bool

(/=)CBORBytesCBORBytes → Bool

ToExpr CBORBytes Source # 
Instance details

Defined in Test.Cardano.Binary.TreeDiff

hexByteStringExpr ∷ ByteString → [Expr] Source #

showHexBytesGrouped ∷ ByteString → [String] Source #

Show a ByteString as hex groups of 8bytes each. This is a slightly more useful form for debugging, rather than bunch of escaped characters.

Orphan instances

ToExpr Term Source # 
Instance details

Methods

toExprTermExpr Source #

listToExpr ∷ [Term] → Expr Source #