RE: Random.lhs broken in ghc-4.02?

1999-06-07 Thread Sigbjorn Finne (Intl Vendor)
Hi, this is a known one - it's fixed in the repository version, which I've attached to this msg. hth --sigbjorn > Michael Weber [mailto:[EMAIL PROTECTED]] writes: > > Hi! > > Consider this: > > \begin{code} > import Random > > main = do r <- randomRIO (6.0::Double,7.0::Double) >

RE: aclocal.m4 and more than one compiler installed

1999-06-07 Thread Simon Marlow
> When compiling on a site which has more than one gcc > installed, this might > help: > > > --- aclocal.m4.orig Mon Jun 7 11:32:23 1999 > +++ aclocal.m4 Mon Jun 7 11:33:04 1999 > @@ -291,7 +291,7 @@ > [AC_CACHE_CHECK([how to invoke GNU cpp directly], fptools_cv_gnu_cpp, > [if test "$

Re: bus error

1999-06-07 Thread Robin Lee Powell
In message <8B57882C41A0D1118F7100805F9F68B50C44A902@RED-MSG-45>, Simon Marlow writes: > >> Given that I didn't compile this (I downloaded the binaries >> from the GHC >> site), I'm not sure how my version of gcc is relevant. >> >> Doesn't this version of ghc go to assembly? > >No, it goes via

aclocal.m4 and more than one compiler installed

1999-06-07 Thread Michael Weber
Hi! When compiling on a site which has more than one gcc installed, this might help: --- aclocal.m4.orig Mon Jun 7 11:32:23 1999 +++ aclocal.m4 Mon Jun 7 11:33:04 1999 @@ -291,7 +291,7 @@ [AC_CACHE_CHECK([how to invoke GNU cpp directly], fptools_cv_gnu_cpp, [if test "$HaveGcc" = "YES";

RE: bus error

1999-06-07 Thread Simon Marlow
> Just ran it with 2.8.1; crashes _sooner_. Much sooner. Like before > anything else happens. You want me to send output again? This is because of a bug in GHC 4.02 (I mentioned in my earlier message that if you want to use 2.8.1 you need a more recent version of GHC). 2.7.2 should work. Ch

Random.lhs broken in ghc-4.02?

1999-06-07 Thread Michael Weber
Hi! Consider this: \begin{code} import Random main = do r <- randomRIO (6.0::Double,7.0::Double) putStrLn $ "Got " ++ (show r) getChar main \end{code} The output is in the interval [6.0..7.0], as expected. Now take \begin{code} import Random main = do r <

compiler-bug

1999-06-07 Thread Andreas Marth
Hello! I got an error compiling my program with ghc-4.02 and ghc-4.03 (-O option) (files error#ghc-4.02-O and error#ghc-4.03-O) I tried compiling with ghc-4.03 without the -O option, but it did'nt help (file error#ghc-4.03) I would be glad if You could give me a hint how to compile it anyway. I s

Re: bus error

1999-06-07 Thread Robin Lee Powell
In message <8B57882C41A0D1118F7100805F9F68B50C44A904@RED-MSG-45>, Simon Marlow writes: > >> Just ran it with 2.8.1; crashes _sooner_. Much sooner. Like before >> anything else happens. You want me to send output again? > >This is because of a bug in GHC 4.02 (I mentioned in my earlier message

Re: bus error

1999-06-07 Thread Robin Lee Powell
In message <8B57882C41A0D1118F7100805F9F68B50C44A8FB@RED-MSG-45>, Simon Marlow writes: >> Note that I'm barely able to write Haskell at all, so this may not be >> very good. All that's required to generate the bug is to run with no >> args. Or any args. Whatever. It does _NOT_ appear to be a

RE: bus error

1999-06-07 Thread Simon Marlow
> Given that I didn't compile this (I downloaded the binaries > from the GHC > site), I'm not sure how my version of gcc is relevant. > > Doesn't this version of ghc go to assembly? No, it goes via C I'm afraid. Our native code generator is in a state of disrepair at the moment. Cheers,