Build error: Data/Generics/Schemes.hs

Johan Tibell johan.tibell at gmail.com
Mon Aug 7 15:37:58 EDT 2006


Checked out the latest version from the darcs repository and got the
following error when trying to build using:

Ubuntu 6.06 with the following Ubuntu packages:
GHC 6.4.1
Alex 2.0.1
Happy 1.15
Perl 5.8.7

Error message follows:
----------

../../compiler/ghc-inplace -H32m -O -fasm -Rghc-timing -fglasgow-exts
-cpp -Iinclude -"#include" HsBase.h -funbox-strict-fields
-package-name  base-1.0 -O -fgenerics  -fgenerics    -c
Data/Generics/Schemes.hs -o Data/Generics/Schemes.o  -ohi
Data/Generics/Schemes.hi

Data/Generics/Schemes.hs:108:15:
    Couldn't match expected type `r' (a rigid variable)
           against inferred type `[a]'
      `r' is bound by the type signature for `listify'
        at Data/Generics/Schemes.hs:106:20
      Expected type: r -> r -> r
      Inferred type: [a] -> [a] -> [a]
    In the first argument of `everything', namely `(++)'
    In the call (everything (++)
                            ([] `mkQ` (\ x -> if p x then [x] else [])))
<<ghc: 31248140 bytes, 11 GCs, 1541604/2990380 avg/max bytes residency
(2 samples), 32M in use, 0.01 INIT (0.00 elapsed), 0.12 MUT (0.29
elapsed), 0.07 GC (0.08 elapsed) :ghc>>
make[2]: *** [Data/Generics/Schemes.o] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/tibbe/dev/haskell/ghc/libraries'
make: *** [stage1] Error 2


More information about the Cvs-ghc mailing list