Show and function types in 4.03

1999-06-03 Thread Conal Elliott
Did something change in 4.03 w.r.t. Show and functions? Mag stopped compiling: ghc-4.03 -c -O2 -fvia-C -O2-for-C -H20M UU_Pretty.hs UU_Pretty.hs:9: No instance for `Show (Int -> String -> String)' When deriving classes for

RE: Show and function types in 4.03

1999-06-03 Thread Simon Peyton-Jones
Yes, in Haskell 98 functions are not an instance of Show. If you want to make it so, just add instance Show (a->b) where show = ... Simon > -Original Message- > From: Conal Elliott > Sent: Thursday, June 03, 1999 1:15 AM > To: 'ghc-bugs' > Cc: 'Oege de Moor' > Subject:

HaskellDirect-help

1999-06-03 Thread Xu Na
Dear Sir/Mdm, Although it is clearly stated in the ANNOUNCE file that "To compile up HaskellDirect from source you'll need to have GHC 4.03 (or later) installed on your machine.", may I ask you the following questions? I have downloaded HaskellDirect (version 1.5). But GHC 4.03 is not available

Simplifier bailing out?

1999-06-03 Thread Mircea Draghicescu
Not really a bug, but what does the "Simplifier still going after 4 iterations..." message mean? For example, I get it when compiling the following with -O: module Simplifier where import Monad i,j :: MonadPlus m => m a -> m a i x = x j x = i (x >>= return) The message goes away after changing

RE: HaskellDirect-help

1999-06-03 Thread Sigbjorn Finne (Intl Vendor)
Xu Na <[EMAIL PROTECTED]> writes: > > > Dear Sir/Mdm, > > Although it is clearly stated in the ANNOUNCE file that > "To compile up HaskellDirect from source you'll need to > have GHC 4.03 (or later) installed on your machine.", > may I ask you the following questions? > > I have downloaded H

RE: Show and function types in 4.03

1999-06-03 Thread Sigbjorn Finne (Intl Vendor)
Show over (->) is no longer Haskell(98). You need to define your own, if you need it. --sigbjorn > Conal Elliott [mailto:[EMAIL PROTECTED]] writes: > > > Did something change in 4.03 w.r.t. Show and functions? Mag stopped > compiling: > > ghc-4.03 -c -O2 -fvia-C -O2-for-C -H