summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-07-06 15:19:19 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-07-09 08:46:44 -0400
commit64e205219fe70a724bcf4558839beaaeb41b2780 (patch)
tree5638c2427e5c1d2abeb12f0985c1cb46ca6f289f
parent8d28b481098742f4fded2ae465a3f49516e2a95c (diff)
downloadhaskell-64e205219fe70a724bcf4558839beaaeb41b2780.tar.gz
Remove redundant patSigErr
-rw-r--r--compiler/GHC/Rename/Pat.hs16
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/GHC/Rename/Pat.hs b/compiler/GHC/Rename/Pat.hs
index 4dda6ee44b..f68aceaf84 100644
--- a/compiler/GHC/Rename/Pat.hs
+++ b/compiler/GHC/Rename/Pat.hs
@@ -36,9 +36,6 @@ module GHC.Rename.Pat (-- main entry points
-- Literals
rnLit, rnOverLit,
-
- -- Pattern Error message that is also used elsewhere
- patSigErr
) where
-- ENH: thin imports to only what is necessary for patterns
@@ -1008,16 +1005,3 @@ rnOverLit origLit
; return ((lit' { ol_val = negateOverLitVal val }, Just negate_name)
, fvs1 `plusFV` fvs2) }
else return ((lit', Nothing), fvs1) }
-
-{-
-************************************************************************
-* *
-\subsubsection{Errors}
-* *
-************************************************************************
--}
-
-patSigErr :: Outputable a => a -> SDoc
-patSigErr ty
- = (text "Illegal signature in pattern:" <+> ppr ty)
- $$ nest 4 (text "Use ScopedTypeVariables to permit it")