summaryrefslogtreecommitdiff
path: root/compiler/main/HscMain.hs
diff options
context:
space:
mode:
authorZubin Duggal <zubin@cmi.ac.in>2019-06-29 19:20:54 +0530
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-08-07 10:18:44 -0400
commit8e2fe57528bacf91e19857d818515b81fadbed58 (patch)
tree8b74983f1502a364f9c9232824e117aa44fc4dfc /compiler/main/HscMain.hs
parent2c1b1ad7dffdde91685f310575a2aba5d211fd81 (diff)
downloadhaskell-8e2fe57528bacf91e19857d818515b81fadbed58.tar.gz
Fix bug preventing information about patterns from being serialized in .hie files
Diffstat (limited to 'compiler/main/HscMain.hs')
-rw-r--r--compiler/main/HscMain.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs
index 52501ec15f..47e23edf57 100644
--- a/compiler/main/HscMain.hs
+++ b/compiler/main/HscMain.hs
@@ -175,7 +175,7 @@ import qualified Data.Set as S
import Data.Set (Set)
import HieAst ( mkHieFile )
-import HieTypes ( getAsts, hie_asts )
+import HieTypes ( getAsts, hie_asts, hie_module )
import HieBin ( readHieFile, writeHieFile , hie_file_result)
import HieDebug ( diffFile, validateScopes )
@@ -428,7 +428,8 @@ extract_renamed_stuff mod_summary tc_result = do
hs_env <- Hsc $ \e w -> return (e, w)
liftIO $ do
-- Validate Scopes
- case validateScopes $ getAsts $ hie_asts hieFile of
+ let mdl = hie_module hieFile
+ case validateScopes mdl $ getAsts $ hie_asts hieFile of
[] -> putMsg dflags $ text "Got valid scopes"
xs -> do
putMsg dflags $ text "Got invalid scopes"