diff options
Diffstat (limited to 'compiler/GHC/Hs/Utils.hs')
-rw-r--r-- | compiler/GHC/Hs/Utils.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Hs/Utils.hs b/compiler/GHC/Hs/Utils.hs index ac157d4caf..36e0c6d2c4 100644 --- a/compiler/GHC/Hs/Utils.hs +++ b/compiler/GHC/Hs/Utils.hs @@ -725,9 +725,10 @@ signatures in order to kind-check. Here is an example from #14579: The derived Eq instance for Glurp (without any kind signatures) would be: instance Eq a => Eq (Glurp a) where + (==) :: Glurp a -> Glurp a -> Bool (==) = coerce @(Wat2 P -> Wat2 P -> Bool) @(Glurp a -> Glurp a -> Bool) - (==) :: Glurp a -> Glurp a -> Bool + (==) (Where the visible type applications use types produced by typeToLHsType.) |