Fix the build with GHC 6.4
[ghc-hetmet.git] / compiler / typecheck / TcTyClsDecls.lhs
index fa10fbf..635fef9 100644 (file)
@@ -224,6 +224,10 @@ mkGlobalThings decls things
         = (name, AClass cl)
     mk_thing (L _ decl, ~(ATyCon tc))
          = (tcdName decl, ATyCon tc)
+#if __GLASGOW_HASKELL__ < 605
+-- Old GHCs don't understand that ~... matches anything
+    mk_thing _ = panic "mkGlobalThings: Can't happen"
+#endif
 \end{code}