summaryrefslogtreecommitdiff
path: root/compiler/types/CoAxiom.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-08-22 10:00:20 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2018-08-23 11:40:51 +0100
commit8c7f90abcc1e8f9f29b751f23174e8db89ba6983 (patch)
tree09ee6f191eef2ddff8e192bce42b80be9c254a69 /compiler/types/CoAxiom.hs
parentdb6f1d9cfc74690798645a7cc5b25040c36bb35d (diff)
downloadhaskell-8c7f90abcc1e8f9f29b751f23174e8db89ba6983.tar.gz
Fix a typo in TcValidity.checkFamInstRhs
In error message generation we were using the wrong type constructor in inst_head. Result: the type became ill-kinded, and that sent the compiler into a loop. A separate patch fixes the loop. This patch fixes the actual bug -- Trac #15473. I also improved the "occurs more often" error message a bit. But it's still pretty terrible: * Variable ‘a’ occurs more often in the type family application ‘Undefined’ than in the instance head ‘LetInterleave xs t ts is y z’ It looks like nonsense, but all becomes clear if you use -fprint-explicit-kinds. Really we should fix this by spotting when invisible arguments are involved and at least suggesting -fprint-explicit-kinds.
Diffstat (limited to 'compiler/types/CoAxiom.hs')
0 files changed, 0 insertions, 0 deletions