Skip to content
Snippets Groups Projects
Commit e951f219 authored by Sebastian Graf's avatar Sebastian Graf Committed by Marge Bot
Browse files

Use FlexibleInstances for `Outputable (* p)` instead of match-all instances...

Use FlexibleInstances for `Outputable (* p)` instead of match-all instances with equality constraints

In #17304, Richard and Simon dicovered that using `-XFlexibleInstances`
for `Outputable` instances of AST data types means users can provide orphan
`Outputable` instances for passes other than `GhcPass`.

Type inference doesn't currently to suffer, and Richard gave an example
in #17304 that shows how rare a case would be where the slightly worse
type inference would matter.

So I went ahead with the refactoring, attempting to fix #17304.
parent e0e04856
No related branches found
No related tags found
Loading
Showing with 210 additions and 206 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment