diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-01-05 10:53:37 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-01-06 14:18:48 +0000 |
commit | d4f460feeb263f794774bf2fc330a48bde4ea81c (patch) | |
tree | 1769b707bced3949fe251c5b2a02b5bf3c12cd28 /compiler/utils/GraphOps.hs | |
parent | 28299d6827b334f5337bf5931124abc1e534f33f (diff) | |
download | haskell-d4f460feeb263f794774bf2fc330a48bde4ea81c.tar.gz |
Use a less fragile method for defaulting
When doing top-level defaulting, in TcSimplify.applyDefaultingRules, we
were temporarily making a unification variable equal to the default type
(Integer, say, or Float), as a 'given', and trying to solve. But this
relied on the unification variable being untouchable, which seems
complicated. It's much simpler just to generate a new set of
constraints to solve, using newWantedEvVarNC in disambigGroup.
(I tripped over an ASSERT failure, and this solved it in a robust way.)
Diffstat (limited to 'compiler/utils/GraphOps.hs')
0 files changed, 0 insertions, 0 deletions