Better error message for Template Haskell pattern brackets
[ghc-hetmet.git] / ghc / compiler / typecheck / TcSplice.lhs
index 578c96b..34e0394 100644 (file)
@@ -149,6 +149,9 @@ tc_bracket (DecBr decls)
        ; return (mkAppTy q_ty (mkListTy decl_ty))
        -- Result type is Q [Dec]
     }
+
+tc_bracket (PatBr _)
+  = failWithTc (ptext SLIT("Tempate Haskell pattern brackets are not supported yet"))
 \end{code}