Rule binders shouldn't have DFun pragmas
authorsimonpj@microsoft.com <unknown>
Tue, 9 Mar 2010 17:31:00 +0000 (17:31 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 9 Mar 2010 17:31:00 +0000 (17:31 +0000)
commit81e41fe31fb27b6330762d93ce90eb98899beb24
tree2b167ae9845c896ecb6ce53c317884f04fe94f0e
parent6e335238185e90ca9107790fb4236a9367ea8865
Rule binders shouldn't have DFun pragmas

When DsBinds deals with a SPECIALISE pragma, it makes up the binders
for a RULE. These binders should be very vanilla: no IdInfo of any sort.
But the way it was before they could have DFun pragmas, which led to
Bad Joss downstream.  (Actually to cause a downstream *error* was itself
a bug, which I've fixed, but it's clearly wrong for them to be DFuns!)
compiler/deSugar/DsBinds.lhs