Thu May 6 09:27:19 PDT 2010 [email protected]
* Make tcg_dus behave more sanely; fixes a mkUsageInfo panic
The tcg_dus field used to contain *uses* of type and class decls,
but not *defs*. That was inconsistent, and it really went wrong
for Template Haskell bracket. What happened was that
foo = [d| data A = A
f :: A -> A
f x = x |]
would find a "use" of A when processing the top level of the module,
which in turn led to a mkUsageInfo panic in MkIface. The cause was
the fact that the tcg_dus for the nested quote didn't have defs for
A.
M ./compiler/basicTypes/NameSet.lhs -4 +5
M ./compiler/rename/RnBinds.lhs -2 +2
M ./compiler/rename/RnExpr.lhs -4 +5
M ./compiler/rename/RnSource.lhs -27 +30
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20100506162719-1287e-4210ea51c381dde9e54351cd7774c322c0d906f0.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc