| OK, here's a quick proposal.
|
| 1. Specifiying a pretty printer. Add the flag:
|
| -pretty
|
| The supplied function will typically have type (C a => a -> String)
| for some class C.
I made a ticket for this. http://hackage.haskell.org/trac/ghc/ticket/5461
Not hard for someone (Razva
2011/8/25 Razvan Ranca :
> Hi David,
>
>> Most importantly though, is there a particular reason you used the GHC
>> version of Pretty as opposed to the official version?
>>
>>
>> http://hackage.haskell.org/packages/archive/pretty/1.1.0.0/doc/html/Text-PrettyPrint.html
>>
>> The proper package alrea
On 22/08/11 12:09, Simon Peyton-Jones wrote:
[Adding cvs-ghc, the GHC hackers list]
| Output via strings alone is obsolete. Haskell should lead
| the way by providing customisable support for output via
| documents. I'm interested in documents for pretty printing,
| but it is easy to imagine ot
2011/8/23 Philip Wadler :
> Thanks. Razvan had some trouble tracking down the right library, so
> it's good to know which is the correct one to use.
>
> The library you pointed to has a default style with a line length of
> 100. I think this should be 72 or 80. I rarely use an interface
> where
| package. More importantly I'm currently in the process of pulling the
| Pretty module out of GHC and having GHC use the Pretty package instead
| as its very ugly software engineering to have these two nearly
| identical modules. So in the next release of GHC I'm hoping to have
| GHC's Pretty modu
Philip Wadler wrote:
> Also, a question about the current pretty printing library.
> Razvan built the generic derivation of pretty printers on
> top of the current library,
>
> http://www.haskell.org/ghc/docs/7.0.4/html/libraries/ghc-7.0.4/Pretty.html
>
> In the course of this, we realised that t
| Hackage makes it hard to format examples, so we put this information
| in the Readme. Please look there, and let us know what you think is
| missing.
I did look! What I think would be helpful would be an example of use.
| > I believe this is already available, simply by putting stuff in y
[Adding cvs-ghc, the GHC hackers list]
| Output via strings alone is obsolete. Haskell should lead
| the way by providing customisable support for output via
| documents. I'm interested in documents for pretty printing,
| but it is easy to imagine other applications as well, such
| as HTML.
FYI (I'm replying shortly)
-Original Message-
From: Philip Wadler [mailto:wad...@inf.ed.ac.uk]
Sent: 22 August 2011 11:39
To: Simon Peyton-Jones
Cc: José Pedro Magalhães; Razvan Ranca
Subject: Re: Support for pretty printing in GHC
Hi Simon,
I wrote to you in May to say that I
| A while back I wrote to you about support of pretty printing in GHC.
| The idea is to have a deriving class similar to Show, which produces
| documents for pretty printing. As I recall, you suggested that I
| produce a complete implementation, and then it would be easy for you
| to incorporate i
10 matches
Mail list logo