File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ghcide/session-loader/Development/IDE Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ loadSessionWithOptions SessionLoadingOptions{..} dir = do
329
329
let res = (map (renderCradleError ncfp) err, Nothing )
330
330
modifyVar_ fileToFlags $ \ var -> do
331
331
pure $ Map. insertWith HM. union hieYaml (HM. singleton ncfp (res, dep_info)) var
332
- return (res,[] )
332
+ return (res, maybe [] pure hieYaml ++ concatMap cradleErrorDependencies err )
333
333
334
334
-- This caches the mapping from hie.yaml + Mod.hs -> [String]
335
335
-- Returns the Ghc session and the cradle dependencies
@@ -360,7 +360,7 @@ loadSessionWithOptions SessionLoadingOptions{..} dir = do
360
360
getOptions file = do
361
361
hieYaml <- cradleLoc file
362
362
sessionOpts (hieYaml, file) `catch` \ e ->
363
- return (([renderPackageSetupException file e], Nothing ),[] )
363
+ return (([renderPackageSetupException file e], Nothing ), maybe [] pure hieYaml )
364
364
365
365
returnWithVersion $ \ file -> do
366
366
opts <- liftIO $ join $ mask_ $ modifyVar runningCradle $ \ as -> do
You can’t perform that action at this time.
0 commit comments