ouroboros-network:api
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Util.PrettyShow

Synopsis

Documentation

class Show a => PrettyShow a where Source #

Pretty print a data type.

Note: PrettyShow should not be used when one wants to rely on compatibility between Show and Read instances or be able to copy paste code (e.g. for Arbitrary generators).

It carries Show constraint, which simplifies type signatures. Show is anyway required by Exception type class, so we cannot simply replace Show by PrettyShow.

Minimal complete definition

Nothing

Methods

prettyShow :: a -> String Source #

Instances

Instances details
PrettyShow SockAddr Source # 
Instance details

Defined in Ouroboros.Network.Util.PrettyShow

PrettyShow Int Source # 
Instance details

Defined in Ouroboros.Network.Util.PrettyShow

PrettyShow Word Source # 
Instance details

Defined in Ouroboros.Network.Util.PrettyShow