summaryrefslogtreecommitdiff
path: root/compiler/Language/Haskell/Syntax.hs-boot
diff options
context:
space:
mode:
authorromes <rodrigo.m.mesquita@gmail.com>2022-05-14 12:12:19 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-03 14:11:31 -0400
commit3a8970ac0c69335a1d229f9c9a71e6e333e99bfb (patch)
tree28a786d6e3bbc40b068cc7fe10433a9a8037b1d6 /compiler/Language/Haskell/Syntax.hs-boot
parent9e79f6d09c9fbd81150a45d307f753141453c945 (diff)
downloadhaskell-3a8970ac0c69335a1d229f9c9a71e6e333e99bfb.tar.gz
TTG: Move HsModule to L.H.S
Move the definition of HsModule defined in GHC.Hs to Language.Haskell.Syntax with an added TTG parameter and corresponding extension fields. This is progress towards having the haskell-syntax package, as described in #21592
Diffstat (limited to 'compiler/Language/Haskell/Syntax.hs-boot')
-rw-r--r--compiler/Language/Haskell/Syntax.hs-boot9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/Language/Haskell/Syntax.hs-boot b/compiler/Language/Haskell/Syntax.hs-boot
new file mode 100644
index 0000000000..72ddcaa0e4
--- /dev/null
+++ b/compiler/Language/Haskell/Syntax.hs-boot
@@ -0,0 +1,9 @@
+{-# LANGUAGE StandaloneDeriving #-}
+module Language.Haskell.Syntax where
+
+import GHC.Prelude (Show)
+import GHC.Data.FastString
+
+newtype ModuleName = ModuleName FastString
+
+instance Show ModuleName