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.PlainText

Description

This is the simplest renderer for a pretty printer: plain text, with no formatting and fixed-width fonts.

Synopsis

Documentation

hPutDoc :: MonadIO m => Handle -> POut Int ann -> m () Source #

Send pretty printer output to a Handle

saveDoc :: MonadIO m => FilePath -> IOMode -> POut Int ann -> m () Source #

Save pretty printer output to a named file

tempDoc :: (MonadIO m, MonadMask m) => POut Int ann -> m () Source #

Save pretty printer output to temporary file. Useful for performance tests.