summaryrefslogtreecommitdiff
path: root/compiler/GHC.hs
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/GHC.hs
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/GHC.hs')
-rw-r--r--compiler/GHC.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC.hs b/compiler/GHC.hs
index 5d57c0d2fa..29a287efb4 100644
--- a/compiler/GHC.hs
+++ b/compiler/GHC.hs
@@ -175,7 +175,7 @@ module GHC (
-- ** Modules
Module, mkModule, pprModule, moduleName, moduleUnit,
- ModuleName, mkModuleName, moduleNameString,
+ mkModuleName, moduleNameString,
-- ** Names
Name,
@@ -1120,7 +1120,7 @@ instance TypecheckedMod DesugaredModule where
instance DesugaredMod DesugaredModule where
coreModule m = dm_core_module m
-type ParsedSource = Located HsModule
+type ParsedSource = Located (HsModule GhcPs)
type RenamedSource = (HsGroup GhcRn, [LImportDecl GhcRn], Maybe [(LIE GhcRn, Avails)],
Maybe (LHsDoc GhcRn))
type TypecheckedSource = LHsBinds GhcTc
@@ -1777,7 +1777,7 @@ lookupName name =
parser :: String -- ^ Haskell module source text (full Unicode is supported)
-> DynFlags -- ^ the flags
-> FilePath -- ^ the filename (for source locations)
- -> (WarningMessages, Either ErrorMessages (Located HsModule))
+ -> (WarningMessages, Either ErrorMessages (Located (HsModule GhcPs)))
parser str dflags filename =
let