on master help sign in
Adds package paths used by stack to script session.
commitf21cb20a0d4e0049061f2c4c48e4c93f0d00170d authorDiogo Biazus <diogo@biazus.me> dateSun 24 Dec 2017, 11:04 (9 years ago) parent390aeda
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+