Ralf Hinze writes:
 > I have written a tool that combines the best of pphs and smugweb by
 > Johannes Waldmann (at least I hope so ;-)). It recognizes indentation,
 > allows fontification of the code, is capable of handling format
 > directives a la smugweb and a lot more. The bad news is that it is
 > barely documented, since I intended to release it only later this year.
 > However, if you are interested I can send you the code (in Haskell, of
 > course ;-). Perhaps you are willing to act as a beta tester? BTW
 > http://www.informatik.uni-bonn.de/~ralf/PQSort.ps.gz was typeset using
 > this system.
 > 
 > Cheer, Ralf

This prompts me to ask if anyone knows of a layout-sensitive to
layout-insensitive converter -- that is, a program that will insert
the { } ; that are missing from layout-sensitive program text.

I was thinking of just banging one out until I saw the following
sentence in the Haskell 1.4 report, section 1.5
(http://haskell.systemsz.cs.yale.edu/onlinereport/):

   A close brace is also inserted whenever the syntactic category
   containing the layout list ends; that is, if an illegal lexeme is
   encountered at a point where a close brace would be legal, a close
   brace is inserted.

which I read as "a full solution might not be so simple."

In a similar vein, a converter from 'do' notation to >>= and back
would be handy.

Any suggestions?

Thanks,
Eric

Reply via email to