I'll fix it in the master sources.

I'm still to work out how bug fixes will get distributed.

This bug can get fix by editing your local Prelude for now.

Andy

Conal Elliott wrote:
> 
> Thanks.  Then it's a bug in Hugs98 that show over (->) is still predefined
> in Haskell98 mode. This inconsistency is unfortunate for people who use GHC
> and Hugs on the same code,.
> 
>         - Conal
> 
>         -----Original Message-----
>         From:   Sigbjorn Finne (Intl Vendor)
>         Sent:   Wednesday, June 02, 1999 11:50 PM
>         To:     Conal Elliott
>         Cc:     'Oege de Moor'; 'ghc-bugs'
>         Subject:        RE: Show and function types in 4.03
> 
>         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 -H20M UU_Pretty.hs
>         >
>         >               UU_Pretty.hs:9:
>         >                   No instance for `Show (Int -> String -> String)'
>         >                   When deriving classes for `Format'
>         >
>         > Here's the code:
>         >
>         >               data Format  = Elem { height  :: Int
>         >                                   , last_w  :: Int
>         >                                   , total_w :: Int
>         >                                   , txtstr  :: Int -> String ->
> String
>         >                                   }
>         >                           deriving Show
>         >
>         > - Conal
>         >

Reply via email to