Re: Beautifying Haskell programs (was: Re: pretty newby )

2003-09-24 Thread Wolfgang Jeltsch
Am Mittwoch, 24. September 2003, 18:01 schrieb Keith Wansbrough: > [...] > And your other point, Luc, about generating type signatures automatically, > shows up something about your approach to debugging code. You should always > put the type signatures in as you go - preferably, before you write

Re: pretty newby

2003-09-24 Thread Malcolm Wallace
John Hughes <[EMAIL PROTECTED]> writes: > The problem is that parsers in compilers don't keep track of comments. > Instead they discard them at the first opportunity (during lexing). > ... What's needed is a parser that can parse > comments, and tie them to the *right place*

Beautifying Haskell programs (was: Re: pretty newby )

2003-09-24 Thread Keith Wansbrough
John Huges wrote: > On Wed, 24 Sep 2003, Luc Taesch wrote: > > > alos, Im surprised that this bland issue has not already been solved (PP > > lib paper looks dated 96). no offence intended, but aas im newbie, i [..] > > As the author of the 96 paper (wasn't it 95?), let me defend it a bit, or >

Re: pretty newby

2003-09-24 Thread Frank Atanassow
On woensdag, sep 24, 2003, at 17:46 Europe/Amsterdam, John Hughes wrote: What's needed is a parser that can parse comments, and tie them to the *right place* in the abstract syntax tree. Figuring out what a comment is really commenting is probably extremely hard... The commenting conventions of Ha

Re: pretty newby

2003-09-24 Thread John Hughes
On Wed, 24 Sep 2003, Luc Taesch wrote: > alos, Im surprised that this bland issue has not already been solved (PP > lib paper looks dated 96). no offence intended, but aas im newbie, i > wonder what am i missing ? what is different in the process of creation > so that this need did not arised alre

Haskell front ends, was pretty newby

2003-09-24 Thread Bernard James POPE
Hi all, I'm not sure I'll answer the question properly, but I think it raises an interesting issue, regarding the state of Haskell front ends. > What I had in mind what to pp my own programs, > to clean the source layout, rather. > so the two gain i was expecting were : > - cleaning the layout

Re: pretty newby

2003-09-24 Thread Luc Taesch
Thanks. i understand that a2ps is rather for printing. What I had in mind what to pp my own programs, to clean the source layout, rather. The process i used in other context is to hack , without really taking care of the layout ( say getting distracted by) , and once i got a resonalble level of

Re: pretty newby

2003-09-23 Thread Nick Name
Alle 16:05, martedì 23 settembre 2003, Luc Taesch ha scritto: > are there any facility to pretty print an haskell program ? If what you need is an external program and not a library, have a look at GNU a2ps. Vincenzo ___ Haskell mailing list [EMAIL PR

Re: pretty newby

2003-09-23 Thread Per Larsson
On Tuesday 23 September 2003 16.05, Luc Taesch wrote: > are there any facility to pretty print an haskell program ? > im aware of HPJ combinators library, but i was looking for a command line > utility, rather.. am i missing an entry in HPJ ? > > thanks > Luc > _

Re: pretty newby

2003-09-23 Thread Malcolm Wallace
Luc Taesch <[EMAIL PROTECTED]> writes: > are there any facility to pretty print an haskell program ? > im aware of HPJ combinators library, but i was looking for a command line > utility, rather.. am i missing an entry in HPJ ? To some extent, you can use an ordinary Haskell compiler to pretty-pr

pretty newby

2003-09-23 Thread Luc Taesch
are there any facility to pretty print an haskell program ? im aware of HPJ combinators library, but i was looking for a command line utility, rather.. am i missing an entry in HPJ ? thanks Luc ___ Haskell mailing list [EMAIL PROTECTED] http://www.haske