| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.Util.PrettyShow
Synopsis
- class Show a => PrettyShow a where
- prettyShow :: a -> String
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
| PrettyShow SockAddr Source # | |
Defined in Ouroboros.Network.Util.PrettyShow Methods prettyShow :: SockAddr -> String Source # | |
| PrettyShow Int Source # | |
Defined in Ouroboros.Network.Util.PrettyShow Methods prettyShow :: Int -> String Source # | |
| PrettyShow Word Source # | |
Defined in Ouroboros.Network.Util.PrettyShow Methods prettyShow :: Word -> String Source # | |