[Haskell-cafe] derive Pretty?

Stefan O'Rear stefanor at cox.net
Thu Jan 31 20:53:20 EST 2008

On Thu, Jan 31, 2008 at 03:00:15PM -0800, Greg Fitzgerald wrote:
> Is it possible to automatically derive instances of
> Pretty<http://haskell.org/ghc/docs/latest/html/libraries/haskell-src/Language-Haskell-Pretty.html>?
> If no, what do most do when it comes to pretty-printing large data types?

It should be pretty trivial to do with my and ndm's Data.Derive
library.  I'm not sure anymore if it has a prettyprinter; I remember
doing the groundwork and finding it fairly easy.  I *think* I got
distracted trying to write a fast prettyprinter.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080131/dcfc2b3e/attachment.bin

More information about the Haskell-Cafe mailing list