RE: Bugs

2001-10-23 Thread Simon Marlow
bash-2.03$ ghc --make Main.hs -o game ghc-5.00.2: chasing modules from: Main.hs Compiling GameWorld( GameWorld.hs, GameWorld.o ) Compiling GameMessages ( GameMessages.hs, GameMessages.o ) Compiling GameFrontEnd ( GameFrontEnd.hs, GameFrontEnd.o ) ghc-5.00.2: panic! (the

Building GHC 5.02 on Solaris x86

2001-10-23 Thread Ian Lynagh
I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: gcc -x c MArray.hc -o MArray.raw_s -S -O -fno-defer-pop -fomit-frame-pointer -DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=502 -O -I/tmp/foo/ghc-5.02/ghc/includes

RE: Building GHC 5.02 on Solaris x86

2001-10-23 Thread Simon Marlow
I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: gcc -x c MArray.hc -o MArray.raw_s -S -O -fno-defer-pop -fomit-frame-pointer -DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=502 -O

ghc misreports the error line

2001-10-23 Thread Sengan
module Test where chars = foo bar this line is in error and it is line 7 ghc test.lhs test.lhs:5: parse error on input `in' It turns out that in the script I am writing (semi-automatic generation of a grammar file) being able to use the above notation for multilined strings is much

Re: ghc misreports the error line

2001-10-23 Thread Ian Lynagh
On Tue, Oct 23, 2001 at 03:24:56PM -0400, Sengan wrote: module Test where chars = foo bar Try this instead: module Test where chars = \n\ \foo\n\ \bar Ian ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED]

problems with Array.elems in ghc-5.02

2001-10-23 Thread Bostjan Slivnik
Hi, I am afraid I have to report a bug in the Array module which is a part of ghc-5.02. Consider the following program: module Main where import Array import List data Foo = Foo Int [Foo] instance Eq Foo where (==)(Foo f1 _) (Foo f2 _) = (==)f1 f2 instance Ord

Re: problems with Array.elems in ghc-5.02

2001-10-23 Thread Marcin 'Qrczak' Kowalczyk
Tue, 23 Oct 2001 22:01:07 +0200, Bostjan Slivnik [EMAIL PROTECTED] pisze: instance Ix Foo where range (lo@(Foo _ foos),hi) = (filter ((=)lo).filter ((=)hi)) foos inRange (Foo lo _,Foo hi _) (Foo f _) = inRange (lo,hi) f index _ (Foo f _) = f This instance doesn't fulfill the

Re: Building GHC 5.02 on Solaris x86

2001-10-23 Thread Ian Lynagh
On Tue, Oct 23, 2001 at 02:10:52PM +0100, Simon Marlow wrote: I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: [...] You need to add the line MArray_HC_OPTS += -monly-3-regs to fptools/hslibs/lang/Makefile.

Re: Bugs

2001-10-23 Thread Manuel M. T. Chakravarty
Jimmy Ng [EMAIL PROTECTED] wrote, bash-2.03$ ghc --make Main.hs -o game ghc-5.00.2: chasing modules from: Main.hs Compiling GameWorld( GameWorld.hs, GameWorld.o ) Compiling GameMessages ( GameMessages.hs, GameMessages.o ) Compiling GameFrontEnd ( GameFrontEnd.hs,

Re: [nhc-bugs] confhc does not recognize ghc 5.*

2001-10-23 Thread José Romildo Malaquias
On Tue, Oct 23, 2001 at 10:53:29AM +0100, Malcolm Wallace wrote: Mieszko Lis [EMAIL PROTECTED] writes: i ran into a compiler-detection bug in building nhc98 (the 1.10 tarball, but the same bug seems to be in cvs and earlier versions): the build process fails to detect the default ghc

Uninstall warning...

2001-10-23 Thread Andre W B Furtado
I had GHC-4.08.1 installed in my computer (which runs under a Windows98 platform), and then I decided to install GHC-5.00.2 (this was its latest version at that time). It is said that GHC-5.00.2 can co-exist with other versions of GHC under a Windows platform, because it does not use cygwin

Unistall warning... again!

2001-10-23 Thread Andre W B Furtado
Now things really got worse... when I try to use GHC-4.08.1, I got the following message: ghc: permission denied ghc: not found make[1]: *** [depend] Error 127 How can I use the old GHC-4.08.1 back again? I have some APIs that still need it... Thanks, -- Andre

RE: suggestion

2001-10-23 Thread Simon Marlow
What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? For example: [hugs-users] Installation problems or [haskell] newbie question. I don't like the extra prefixes, but if most folk would prefer

Incoherence

2001-10-23 Thread John Hughes
I noticed today that the presence or absence of a type signature can change the RESULT of an expression in Hugs and GHC nowadays. Here's an example: a = (let x = ?x in x with ?x = 1) with ?x = 2 -- a == 2 b = (let x :: (?x :: Integer) = Integer x = ?x

Enum class

2001-10-23 Thread Ch. A. Herrmann
Hi Haskellers, assuming that the type class Enum represents enumeration types, there are two questions for me: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as counters in

Re: Enum class

2001-10-23 Thread Lennart Augustsson
Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as counters in arithmetic sequences. And what's wrong with that? If the students are using are using

Re: Enum class

2001-10-23 Thread Tim Barbour
Lennart Augustsson writes: Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as counters in arithmetic sequences. And what's wrong with

Re: suggestion

2001-10-23 Thread José Romildo Malaquias
On Tue, Oct 23, 2001 at 09:37:15AM +0100, Simon Marlow wrote: What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? For example: [hugs-users] Installation problems or [haskell] newbie

Re: Enum class

2001-10-23 Thread John Meacham
On Tue, Oct 23, 2001 at 07:32:58PM +1000, Tim Barbour wrote: Lennart Augustsson writes: Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as

Re: Enum class

2001-10-23 Thread Ch. A. Herrmann
Lennart == Lennart Augustsson [EMAIL PROTECTED] writes: Lennart Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as counters in arithmetic

Re: Incoherence

2001-10-23 Thread Marcin 'Qrczak' Kowalczyk
Tue, 23 Oct 2001 08:00:34 -0700, Jeffrey R Lewis [EMAIL PROTECTED] pisze: The best solution is to find a good way to eliminate the DMR. Separating syntaxes of function definition and pattern binding would have the right effect IMHO, but it's a radical change which breaks compatibility and

Re: Enum class

2001-10-23 Thread George Russell
I personally think the inclusion of Float and Double in Enum is an unmitigated disaster. Enum consists of three separate parts: (1) succ pred. These appear for float to correspond to adding or subtracting 1.0. (I am finding this out by testing with ghci; it's not specified where

Re: rank 2-polymorphism and type checking

2001-10-23 Thread Iavor S. Diatchki
hi test :: (forall t . (forall a . t a) - t b) - b - b i am not an expert on this, but isnt this rank 3? bye iavor -- == | Iavor S. Diatchki, Ph.D. student | | Department of Computer Science and Engineering | | School of OGI

Re: Enum class

2001-10-23 Thread Max Kirillov
On Tue, Oct 23, 2001 at 12:27:37PM +0200, Ch. A. Herrmann wrote: Removing them would possibly cause problems with existing programs and this is definitely not my aim. However, it'll make sense to think about long-term improvements. I wouldn't call Float and Double enumeration types. Maybe,

Re: Enum class

2001-10-23 Thread Lennart Augustsson
Tim Barbour wrote: Lennart Augustsson writes: Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as counters in arithmetic sequences.

Re: Enum class

2001-10-23 Thread Lennart Augustsson
Ch. A. Herrmann wrote: Lennart == Lennart Augustsson [EMAIL PROTECTED] writes: Lennart Ch. A. Herrmann wrote: (1) What is the justification for the types Float and Double to be members of the type class Enum? This might induce students to use floating point values as

Re: Enum class

2001-10-23 Thread Jan-Willem Maessen
Alas, it seems to me Enum is really two classes rather unfortunately lumped together: Correspondence with Int: class Enum a where succ, pred :: a - a toEnum :: Int - a fromEnum:: a - Int Arithmetic series-like enumeration: class Enum a where

Re: suggestion

2001-10-23 Thread Juan Carlos Arévalo Baeza
On 23 Oct 2001 08:11:59 +0200, Ketil Malde wrote:   I'd personally prefer to get a proper Reply-To:   header so replies go to the list by default, not to the original   sender. This is a lot worse. On the lists I subscribe to that have this kind of configuration, the lists are riddled with

Re: Enum class

2001-10-23 Thread Tom Pledger
Jan-Willem Maessen writes: | * Split the Enum class into two. Possibly correspondence with Int | belongs in Bounded---but it depends what you think Bounded | means. FWIW I sometimes use a data type for the very purpose of adding bounds to an open-ended type. data Close a =

RE: Haskell 98 - Standard Prelude - Floating Class

2001-10-23 Thread roconnor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How about making default method for asin asin x = atan(x/sqrt(1-x^2)) Can't be worse than the default for (**) ;-) - -- Russell O'Connor[EMAIL PROTECTED] http://www.math.berkeley.edu/~roconnor/ ``This is not a

Re: Haskell 98 - Standard Prelude - Floating Class

2001-10-23 Thread Brian Boutel
[EMAIL PROTECTED] wrote: How about making default method for asin asin x = atan(x/sqrt(1-x^2)) Can't be worse than the default for (**) ;-) Oh, it can. As well as its own problems when x is close to 1, it inherits, through the default definition of sqrt, the problems of (**) when x

Re: Enum class

2001-10-23 Thread Pixel
George Russell [EMAIL PROTECTED] writes: (1) succ pred. These appear for float to correspond to adding or subtracting 1.0. (I am finding this out by testing with ghci; it's not specified where it should be, in section 6.3.4 of the standard). Because of rounding errors,