summaryrefslogtreecommitdiff
path: root/compiler/GHC/Utils/Error.hs
diff options
context:
space:
mode:
authorAaron Allen <aaron@flipstone.com>2021-10-02 14:52:43 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-16 02:27:48 -0400
commit577135bf2251cf0aecf07ebb4966659d3fcc62b5 (patch)
tree37c81bc6ccfd13f5399a85bf4afd9a044bf9fc6f /compiler/GHC/Utils/Error.hs
parentab618309069bb47645f33cd1b198ace46e27abb9 (diff)
downloadhaskell-577135bf2251cf0aecf07ebb4966659d3fcc62b5.tar.gz
Convert Diagnostics in GHC.Tc.Gen.Foreign
Converts all uses of 'TcRnUnknownMessage' to proper diagnostics.
Diffstat (limited to 'compiler/GHC/Utils/Error.hs')
-rw-r--r--compiler/GHC/Utils/Error.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Utils/Error.hs b/compiler/GHC/Utils/Error.hs
index fb981452b6..7d2eb34c3b 100644
--- a/compiler/GHC/Utils/Error.hs
+++ b/compiler/GHC/Utils/Error.hs
@@ -1,4 +1,5 @@
{-# LANGUAGE BangPatterns #-}
+{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ViewPatterns #-}
@@ -194,6 +195,7 @@ mkPlainErrorMsgEnvelope locn msg =
data Validity' a
= IsValid -- ^ Everything is fine
| NotValid a -- ^ A problem, and some indication of why
+ deriving Functor
-- | Monomorphic version of @Validity'@ specialised for 'SDoc's.
type Validity = Validity' SDoc