diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-11-17 14:56:44 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-11-17 15:00:32 +0000 |
commit | cef4170c07d11ee3c1156a1e7b61d7d52e2c00ae (patch) | |
tree | 2b86d9f70eb07f205b9516fdde2b5b7d82a18079 /compiler/GHC/Driver/Backpack/Syntax.hs | |
parent | 3e94b5a7ebddf156f00599c6bd2e9ba1af437a6c (diff) | |
download | haskell-wip/remove-complexity-bkp.tar.gz |
Remove unused module import syntax from .bkp modewip/remove-complexity-bkp
.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.hs | 2 |
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) |