on master help sign in
Adds package paths used by stack to script session.
commitfef1ed72813f81a9f2861f0a4362141f3f059aee authorDiogo Biazus <diogo@biazus.me> dateSun 24 Dec 2017, 11:04 (9 years ago) parent394c7f9
1 file changed+4−2
src/lib/ProjectM36/ScriptSession.hs+4−2
src/lib/ProjectM36/ScriptSession.hs+4−2
@@ -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+