summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Backpack/Syntax.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-11-17 14:56:44 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-20 05:35:02 -0500
commit3d6b78dbd19f9061387c60e553638f9c26839d50 (patch)
tree9c904e946dd56912299a87270184d72820ff7b4c /compiler/GHC/Driver/Backpack/Syntax.hs
parentaabff1093f7b80d968c2847d3a3de4280e72391f (diff)
downloadhaskell-3d6b78dbd19f9061387c60e553638f9c26839d50.tar.gz
Remove unused module import syntax from .bkp mode
.bkp mode had this unused feature where you could write module A and it would go looking for A.hs on the file system and use that rather than provide the definition inline. This isn't use anywhere in the testsuite and the code to find the module A looks dubious. Therefore to reduce .bkp complexity I propose to remove it. Fixes #20701
Diffstat (limited to 'compiler/GHC/Driver/Backpack/Syntax.hs')
-rw-r--r--compiler/GHC/Driver/Backpack/Syntax.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Backpack/Syntax.hs b/compiler/GHC/Driver/Backpack/Syntax.hs
index a0529fce2e..e67c62d6d8 100644
--- a/compiler/GHC/Driver/Backpack/Syntax.hs
+++ b/compiler/GHC/Driver/Backpack/Syntax.hs
@@ -65,7 +65,7 @@ type LHsUnit n = Located (HsUnit n)
-- | A declaration in a package, e.g. a module or signature definition,
-- or an include.
data HsUnitDecl n
- = DeclD HscSource (Located ModuleName) (Maybe (Located HsModule))
+ = DeclD HscSource (Located ModuleName) (Located HsModule)
| IncludeD (IncludeDecl n)
type LHsUnitDecl n = Located (HsUnitDecl n)