Note [Do not rewrite newtypes]
We flirted with unwrapping newtypes in the rewriter -- see GHC.Tc.Solver.Equality Note [Unwrap newtypes first]. But that turned out to be a bad idea because of recursive newtypes, as that Note says. So be careful if you re-add it!
References 1
- Unwrap newtypes first GHC.Tc.Solver.Equality
Referenced by 1
- GHC.Tc.Solver.Rewrite call site