clash-lang / ghc-typelits-extra

Extra type-level operations on GHC.TypeLits.Nat and a custom solver
Other
16 stars 9 forks source link

Parse `Assert`-based constraints in GHC 9.4+ #51

Closed christiaanb closed 7 months ago

christiaanb commented 7 months ago

So we can create new wanted constraints from them. Before, we would only recognise ~-based constraints. We need to parse Assert-based constraints because it is used to implement <=.

Also, we no longer silently fails when it's unexpected constraint.