| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Text.Prettyprint.Doc.Render.String
Synopsis
- renderString :: SimpleDocStream ann -> String
- renderShowS :: SimpleDocStream ann -> ShowS
Documentation
renderString :: SimpleDocStream ann -> String Source #
Render a SimpleDocStream to a String.
renderShowS :: SimpleDocStream ann -> ShowS Source #
Render a SimpleDocStream to a ShowS, useful to write Show instances
based on the prettyprinter.
instanceShowMyType whereshowsPrec_ =renderShowS.layoutPrettydefaultLayoutOptions.pretty