summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-07-06 15:19:19 +0200
committerAlfredo Di Napoli <alfredo@well-typed.com>2021-07-06 15:19:19 +0200
commitb4189dea79cf1d4a035f20762ed85fb194a3137f (patch)
tree09df4d49e063072b548a9f762edb510931467fdf
parent78bfc6ed505dbdeb76e5dc3277c451d3eb29ebd6 (diff)
downloadhaskell-b4189dea79cf1d4a035f20762ed85fb194a3137f.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")