summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2010-05-06 16:27:19 +0000
committersimonpj@microsoft.com <unknown>2010-05-06 16:27:19 +0000
commitb2d9ef8482638a91e68acdd19ecfe24db0458049 (patch)
tree868ab3d4bef41859e08c0b3897429c8be4ca0bc2 /compiler/codeGen
parent302e2e29f2e1074bfba561e077a484dc4e1d15f6 (diff)
downloadhaskell-b2d9ef8482638a91e68acdd19ecfe24db0458049.tar.gz
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.
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions