constant space `minimum'

2004-09-28 Thread Serge D. Mechveliani
Simon Marlow responds on the subject of constant space `minimum': > In 6.4, minimum & maximum will have specialised versions for Int & > Integer, which will run in constant stack space. We can't do this in > general, because minimum/maximum have the type > > (Ord a) =3D> [a] -> a > > and we ca

Re: Haddock: how to disable the JavaScript menus?

2004-09-28 Thread Peter Simons
Simon Marlow writes: > The tree is expanded by default now (Sven Panne made the > change a few days ago). I have rebuilt everything from CVS HEAD moments ago and the generated reference documentation still comes with the menus collapsed. Am I doing something wrong? Peter _

Re: Haddock: how to disable the JavaScript menus?

2004-09-28 Thread Tomasz Zielonka
On Tue, Sep 28, 2004 at 04:05:59PM +0100, Malcolm Wallace wrote: > On the theme of improving Haddock, do you think it could be fixed to > generate valid HTML? Maybe it would be a good idea to use Peter Thiemann's WASH/HTML library? Dependence on external library is one obvious (small?) problem tha

Re: Haddock: how to disable the JavaScript menus?

2004-09-28 Thread Malcolm Wallace
On the theme of improving Haddock, do you think it could be fixed to generate valid HTML? Here are some examples of the errors I get when running Haddock output through "validate" (the Web Design Group's HTML and XML validator). *** Errors validating Text.XML.HaXml.Combinators.html: *** L

Re: Haddock: how to disable the JavaScript menus?

2004-09-28 Thread Peter Simons
While I am at it: There is another (rather simple) feature I'd like to see in Haddock. I often link to Haddock-generated documentation on my web pages, but there is no way for me to link _back_ from the Haddock output. Would it be possible to add command line switch to specify an "up" link and the

RE: Haddock: how to disable the JavaScript menus?

2004-09-28 Thread Simon Marlow
On 27 September 2004 21:15, Peter Simons wrote: > Simon Marlow writes: > > > This change has now been made. > > Uh ... any hints what has changed? A new command line flag? > > > > we need a way to retain the collapsed/expanded state > > between page transitions (JavaScript hackers apply >

RE: rewrite rule pragma syntax

2004-09-28 Thread Simon Marlow
On 09 September 2004 16:51, Henning Thielemann wrote: > I encountered the same problem as this guy: > http://www.haskell.org/pipermail/glasgow-haskell-users/2002-May/003407.h tml > > It is still present in GHC-6.2.1. Only if you turn on -fglasgow-exts > the RULES pragma is parsed correctly. I thi

RE: constant space `minimum'

2004-09-28 Thread Simon Marlow
In 6.4, minimum & maximum will have specialised versions for Int & Integer, which will run in constant stack space. We can't do this in general, because minimum/maximum have the type (Ord a) => [a] -> a and we can't assume that the comparison operations for any given type are always strict. C