final-pretty-printer-0.1.0.0: Extensible pretty printing with semantic annotations and proportional fonts

Copyright(c) David Darais David Christiansen and Weixi Ma 2016-2017
LicenseMIT
Maintainerdavid.darais@gmail.com
Stabilityexperimental
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Text.PrettyPrint.Final.Rendering.HTML

Description

HTML has its own conventions around whitespace and newlines. This modules contains a renderer that inserts the appropriate non-breaking spaces and line break tags.

Synopsis

Documentation

render :: forall ann. (ann -> Text -> Text) -> POut Int ann -> Text Source #

Render an document to a string suitable for inclusion in HTML. The HTML should use a monospaced font for the code.