Usually this kind of thing indicates a stale .hi file. If it's stale, but GHC should know, then it's a bug. But sometimes it happens because file modification times are messed up, or you changed version of GHC or something.
If it happens in a clean tree, it's definitely a bug. It's not a "known bug" so far as I know, so a reproducible test case would be fantastic. Oh: use -dcore-lint. That often nails the error much earlier Simon | -----Original Message----- | From: [email protected] [mailto:[email protected]] On Behalf Of | David Roundy | Sent: 15 April 2009 15:02 | To: [email protected] | Subject: error: Iface type variable out of scope: | | Hello ghc folks, | | I'm getting the following error compiling darcs: | | [ghc] src/Darcs/Repository/HashedRepo.hs | src/Darcs/Patch/Set.hi | Declaration for a: | Iface type variable out of scope: x10s | Cannot continue after interface file error | | This is with the ghc 6.8.2 that is included in ubuntu Hardy Heron. | The code is a bit large, and I haven't yet committed the changes that | trigger this (since it won't compile), but I thought I'd just check | whether this is a known bug before providing a better report. A | googling revealed a bug with the same error message (also revealed by | darcs developers) that was in ghc 6.6, but doesn't seem to be related. | In that case, the workaround was to avoid using the GADT syntax. | | Any suggestions? | -- | David Roundy | | _______________________________________________ | Cvs-ghc mailing list | [email protected] | http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
