Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Loading
user avatar
Simon Peyton Jones authored
Issue #17151 was a very tricky example of a bug in which the
specialiser accidentally constructs a recurive dictionary,
so that everything turns into bottom.

I have fixed variants of this bug at least twice before:
see Note [Avoiding loops].  It was a bit of a struggle
to isolate the problem, greatly aided by the work that
Alexey Kuleshevich did in distilling a test case.

Once I'd understood the problem, it was not difficult to fix,
though it did lead me a bit of refactoring in specImports.

(cherry picked from commit cec2c71f)
7b894e6b
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..
Rules.hs
SpecConstr.hs
Specialise.hs