Generics in 6.8.0 RC

Stefan O'Rear stefanor at
Sat Sep 22 10:32:11 EDT 2007

On Sat, Sep 22, 2007 at 10:45:50AM +0200, Dirk Kleeblatt wrote:
> Dear *,
> I just failed to get generic classes working with snapshot
> ghc- Are generics broken in
> the RC, or am I doing something wrong?
> I tried the following module:
> Gen.hs:13:0:
>       Can't find interface-file declaration for variable GHC.Base.$gfromBool
>         Probable cause: bug in .hi-boot file, or inconsistent .hi file
>         Use -ddump-if-trace to get an idea of which file caused the error
>       In the first argument of `a', namely `(GHC.Base.$gfromBool b)'
>       In the first argument of `(\ a -> a)', namely
>           `(a (GHC.Base.$gfromBool b))'
>       In the expression: (\ a -> a) (a (GHC.Base.$gfromBool b))
> Failed, modules loaded: none.

This is definitely a GHC bug:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :

More information about the Glasgow-haskell-users mailing list