Commit ca173aa3 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Add a case to checkValidTyCon

Apparently when Haddock'ing, we check GHC.Prim.
So checkValidTyCon must not crash when dealing with
PrimTyCons; and it was doing so in dataConStupidTheta.

The fix is easy, but I'm puzzled about why Haddock needs to
typecheck GHC.Prim.
parent 51cbad15
......@@ -1451,6 +1451,9 @@ checkValidTyCl thing
checkValidTyCon :: TyCon -> TcM ()
checkValidTyCon tc
| isPrimTyCon tc -- Happens when Haddock'ing GHC.Prim
= return ()
| Just cl <- tyConClass_maybe tc
= checkValidClass cl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment