Community
Modules 28

Prettyprinter.Render.String

renderString :: SimpleDocStream ann -> String

Render a SimpleDocStream to a String.

renderShowS :: SimpleDocStream ann -> ShowS

Render a SimpleDocStream to a ShowS, useful to write Show instances based on the prettyprinter.

instance 'Show' MyType where
    'showsPrec' _ = 'renderShowS' . 'layoutPretty' 'defaultLayoutOptions' . 'pretty'
Build record and source files

Community contribution. The service has not verified this documentation. The generator reported 21 diagnostics.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: 19f659e0fd2a9606431ae6a3ec65f9ace725052e19ca6a9f9e9f2759e30fd129

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.