[Haskell-cafe] Prettier pretty-printing of data types?

Ryan Newton rrnewton at gmail.com
Sat Mar 17 13:55:01 CET 2012

Hi all,

I've got a question that pertains to any of these identify-region, parse,
make-expandable approaches.

The main use I'd like to use the trick for (esp. Chris's Emacs version) is
to deal with large intermediate compiler ASTs.

But if a compiler produces a long stream of output to stdout, with certain
Show-produced ASTs embedded in it, what's the most expedient way to
identify those regions that can be collapsed in the buffer and
interactively expanded?

   - The user could define heuristics for identifying those regions in a
   particular stream of output
   - If the source is available, the compiler could be tweaked to obey a
   protocol, putting delimiters around collapsable output (possibly
   non-printing control sequences??)

Or is there another hack I'm not thinking of?  What's easiest?


On Wed, Mar 14, 2012 at 5:01 AM, Heinrich Apfelmus <
apfelmus at quantentunnel.de> wrote:

> Christopher Done wrote:
>> Maybe an Emacs script to expand the nodes nicely:
>> http://www.youtube.com/watch?**v=6ofEZQ7XoEA<http://www.youtube.com/watch?v=6ofEZQ7XoEA>I don't find mere pretty
>> printing that useful compared to the “expanding” paradigm I'm used to in
>> Chrome and Firebug.
> Great demo video. My recent GSoC project suggestions aims to make that
> available to non-Emacsers, via the web browser.
>  http://hackage.haskell.org/**trac/summer-of-code/ticket/**1609<http://hackage.haskell.org/trac/summer-of-code/ticket/1609>
> Best regards,
> Heinrich Apfelmus
> --
> http://apfelmus.nfshost.com
> ______________________________**_________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120317/ed37b078/attachment.htm>

More information about the Haskell-Cafe mailing list