@@ -46,7 +46,9 @@ initScriptSession ghcPkgPaths = do
4646
4747 sandboxPkgPaths <- liftIO $ concat <$> mapM glob [
4848 "./dist-newstyle/packagedb/ghc-" ++ ghcVersion,
49− ".cabal-sandbox/*ghc-" ++ ghcVersion ++ "-packages.conf.d",
49+ ".cabal-sandbox/*ghc-" ++ ghcVersion ++ "-packages.conf.d",
50+ ".stack-work/install/*/*/" ++ ghcVersion ++ "/pkgdb",
51+ homeDir </> ".stack/snapshots/*/*/" ++ ghcVersion ++ "/pkgdb",
5052 homeDir </> ".cabal/store/ghc-" ++ ghcVersion ++ "/package.db"
5153 ]
5254
@@ -171,4 +173,4 @@ typeCheckScript expectedType inp = do
171173 pure Nothing
172174 else
173175 pure (Just (TypeCheckCompilationError (showType dflags expectedType) (showType dflags funcType)))
174−
176+