Buggy derived instance of Show

1998-01-29 Thread Manuel Chakravarty
Dear GHC Bug Hunters, I found a bug in derived instances for Show that contain `Float' numbers. Running data MassPnt = MassPnt Float (Float, Float) deriving (Show) main = do print 1.18088e+11 let p = MassPnt 1.18088e+11 (-0.768153, -0.742202)

ghc-3.00/irix build problem

1998-01-29 Thread Fuad Abdallah
Hi, compiling the ghc-3.00 source for irix 6.2 fails with the following error: in ghc/runtime: ../../ghc/driver/ghc -I../includes -optc-DGCap -O -optc-DIN_GHC_RTS=1 -I../runtime/storage -optc-DIN_GHC_RTS=1 -c main/StgStartup.hc -o main/StgStartup.o -osuf o main/StgStartup.hc:232: warning:

Floats don't like to be referenced [was: Buggy derived instance of Show]

1998-01-29 Thread Manuel Chakravarty
Scary, but true...the floats in my version of ghc don't like to be referenced. The program data MassPnt = MassPnt Float (Float, Float) deriving (Show) main = do print 1.18088e+11-- (1) let x = 1.18088e+11

Still unhappy

1998-01-29 Thread Ralf Hinze
Guess what? It's the old 'for i in ;' problem again. Try 'make install SHELL=bash' (I think the upper case is important). Yes, the upper case is important. However, installing happy from the binaries still does not work. Here is a summary of my undertakings: gunzip

Re: Strange module exportation behavior

1998-01-29 Thread Simon L Peyton Jones
Conal: great bug report; thanks. Meanwhile a workaround is to use qualified names in the export list for Test2: module Test2( Test1.foo, module Test2 ) import Test1 hiding(main) main = ... Inconvenient, but it should get you rolling. Simon,

Re: error: (misc)

1998-01-29 Thread Sigbjorn Finne
Alex Ferguson writes: install-sh does a fine line in unhelpful error messages: well, error message singular, at any rate... for i in hp2ps; do \ /export/home/ferguson/ghc-3.00/build/install-sh -c -g ghc-admin -s $i /usr/local/bin; \ done hp2ps:error reading file This

Re: Fun with 3.00

1998-01-29 Thread Simon L Peyton Jones
One can play funny games with GHC-3.00 and the following program (a small fragment of a Happy-generated parser): -- module Foo ( happyParse ) where action_0 1 = \j tk _ - action_1 j j tk (HappyState action_1)

Fun with 3.00

1998-01-29 Thread Sven Panne
One can play funny games with GHC-3.00 and the following program (a small fragment of a Happy-generated parser): -- module Foo ( happyParse ) where action_0 1 = \j tk _ - action_1 j j tk (HappyState action_1) action_1 3 =