Re: Using GHC and wxHaskell

2004-09-10 Thread Ivan Boldyrev
On 8861 day of my life Mike Thomas wrote: > Hi Miren. > > | Is that a good option? How can I use the wxHaskell libraries with GHC? > | I´m working under Windows XP. > > Check out wxHaskell: > > http://wxhaskell.sourceforge.net/ Does it work under Windows? One of my friends tried it under Windows,

Re: Using GHC and wxHaskell

2004-09-10 Thread Arjan van IJzendoorn
Hi Miren, As I need to implement a graphical interface, I was thinking of using wxHaskell. Is that a good option? How can I use the wxHaskell libraries with GHC? I´m working under Windows XP. Yes, wxHaskell is a good option. As far as I know there are two options for writing GUIs that run under Wi

Re: constant space `minimum'

2004-09-10 Thread Serge D. Mechveliani
See my next letter -- about compiling of minimum [1 .. (10^6)] with -O. Because, I think, [1 .. (10^6)] is a program which interferes with `minimum', and it depends much on how cleverly this whole expression is complied, for example, `minimum' is in-lin

Re: constant space `minimum'

2004-09-10 Thread Jerzy Karczmarczuk
Serge D. Mechveliani wrote: The library functions like minimum, maximum, should perform in a constant space: probably, it is easy to write them his way. And ghc-6.2.2-pre shows Prelude> minimum [1 .. (10^4)] 1 Prelude> minimum [1 .. (10^6)] *** Exception: stack overflow Prelude> What do

rewrite rule pragma syntax

2004-09-10 Thread Henning Thielemann
I encountered the same problem as this guy: http://www.haskell.org/pipermail/glasgow-haskell-users/2002-May/003407.html It is still present in GHC-6.2.1. Only if you turn on -fglasgow-exts the RULES pragma is parsed correctly. I think GHC should give a warning like "turn -fglasgow-exts on for RU

Re: constant space `minimum'

2004-09-10 Thread Ketil Malde
"Serge D. Mechveliani" <[EMAIL PROTECTED]> writes: > The library functions like minimum, maximum, should perform in a > constant space: probably, it is easy to write them his way. I haven't given it much thought, but it seems that the rather obvious: Prelude> minimum [1..10^6] *** Except

minimum [1 .. (10^7)]

2004-09-10 Thread Serge D. Mechveliani
I wrote recently > Prelude> minimum [1 .. (10^4)] > 1 > Prelude> minimum [1 .. (10^6)] > *** Exception: stack overflow But if the code for [1 .. (10^...)] is compiled, and compiled by -O, then this improves. So, I do not know, so far, whether GHC is in any trouble here. --

constant space `minimum'

2004-09-10 Thread Serge D. Mechveliani
Dear GHC developers, The library functions like minimum, maximum, should perform in a constant space: probably, it is easy to write them his way. And ghc-6.2.2-pre shows Prelude> minimum [1 .. (10^4)] 1 Prelude> minimum [1 .. (10^6)] *** Exception: stack overflow Prelude> What d