aboutsummaryrefslogtreecommitdiff
path: root/app/Server.hs
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2018-10-09 23:13:07 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2018-10-09 23:13:07 +0300
commit166265e93de140c4a33f7a61bc004fb64be18275 (patch)
tree7773bb4f34604637ad42a9d7948593737f2b3c9d /app/Server.hs
parentf38daf67730fe31b865528eb972c619857e62a5c (diff)
WIP. It compiles with ghc-8.4.3, but not all features of the indexer are supported yet.
Diffstat (limited to 'app/Server.hs')
-rw-r--r--app/Server.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Server.hs b/app/Server.hs
index 39f550f..fd70454 100644
--- a/app/Server.hs
+++ b/app/Server.hs
@@ -343,9 +343,11 @@ loadPackageInfo config path =
HCE.source :: HCE.CompactModuleInfo -> V.Vector T.Text
in if not enableExpressionInfo
then modInfo
- { HCE.exprInfoMap = IVM.empty
+ { HCE.exprInfoMap = IVM.empty
+ , HCE.source = V.force $ source modInfo
+ -- 'force' fixes this error: Data.Vector.Mutable: uninitialised element CallStack (from HasCallStack): error, called at ./Data/Vector/Mutable.hs:188:17 in vector-0.12.0.1-GGZqQZyzchy8YFPCF67wxL:Data.Vector.Mutable
}
- else modInfo)
+ else modInfo {HCE.source = V.force $ source modInfo})
, path)
Left e -> return . Left $ (e, path)