clash-lang / ghc-typelits-natnormalise

Normalise GHC.TypeLits.Nat equations
Other
43 stars 15 forks source link

Don't emit reduced wanteds #37

Closed christiaanb closed 4 years ago

christiaanb commented 4 years ago

i.e. Don't solve [W] F (n + 1) by returning [W] F (1 + n) |> F (n + 1) as evidence and emitting a new [W] F (1 + n) constraint. This can sometimes throw us into a constraint-solver loop where GHC asks us to up the constraint-solver-iteration limit.