summaryrefslogtreecommitdiff
path: root/compiler/GHC/HsToCore/Errors/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/HsToCore/Errors/Types.hs')
-rw-r--r--compiler/GHC/HsToCore/Errors/Types.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/GHC/HsToCore/Errors/Types.hs b/compiler/GHC/HsToCore/Errors/Types.hs
new file mode 100644
index 0000000000..45a47d5c30
--- /dev/null
+++ b/compiler/GHC/HsToCore/Errors/Types.hs
@@ -0,0 +1,10 @@
+
+module GHC.HsToCore.Errors.Types where
+
+import GHC.Types.Error
+
+-- | Diagnostics messages emitted during desugaring.
+data DsMessage =
+ DsUnknownMessage !DiagnosticMessage
+ -- ^ Simply rewraps a generic 'DiagnosticMessage'. More
+ -- constructors will be added in the future (#18516).