Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- renderShowS :: SimpleDoc ann -> ShowS
Documentation
renderShowS :: SimpleDoc ann -> ShowS Source #
Render a SimpleDoc
to a ShowS
, useful to write Show
instances based
on the prettyprinter.
instanceShow
MyType whereshowsPrec
_ =renderShowS
.layoutPretty
defaultLayoutOptions
.pretty