PPrinter

A generic derivable Haskell pretty printer

Latest on Hackage:0.1.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Yi Zhen
Maintained by s1563190@sms.ed.ac.uk

A library that supports deriving of pretty printing functions on data types.

The interfaces of pretty printer used are based on that introduced in the paper: Philip Wadler, A Prettier Printer, The Fun of Programming, Cornerstones of Computing (2003): 223-243. original paper

The form of generic feature used is based on that introduced in the paper: Magalhaes, et al., A Generic Deriving Mechanism for Haskell, 3'rd ACM Symposium on Haskell, pp. 37-48, September 2010, http://dx.doi.org/10.1145/1863523.1863529. The necessary information of implementation of GHC.Generics is described here: https://hackage.haskell.org/package/base-4.9.0.0/docs/GHC-Generics.html#g:1.

The implementation of deriving part of API is based on that designed in the library: GenericPretty, the details are introduced here: https://hackage.haskell.org/package/GenericPretty

Depends on:
Used by 1 package:
comments powered byDisqus