Visitar URL original
Fixed ghc lib dir lookup via stack for system installed ghc. by ch1bo · Pull Request #39 · hdevtools/hdevtools · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed ghc lib dir lookup via stack for system installed ghc.
  • Loading branch information
ch1bo committed Sep 6, 2016
commit 8a1e4ea1b2eabb35a46ce90f76f2196dbd7726a3
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.4.2 - UNRELEASED

* Fixed ghc library directory lookup via stack for system installed ghc.

## 0.1.4.1 - 2016-09-04

* Do not try to execute `stack` commands if not available.
Expand Down
2 changes: 1 addition & 1 deletion hdevtools.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hdevtools
version: 0.1.4.1
version: 0.1.4.2
synopsis: Persistent GHC powered background server for FAST haskell development tools
license: MIT
license-file: LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Stack.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ getStackGhcBinDir :: FilePath -> IO (Maybe FilePath)
getStackGhcBinDir = fmap (fmap trim) . execStackInPath "path --compiler-bin"

getStackGhcLibDir :: FilePath -> IO (Maybe FilePath)
getStackGhcLibDir = fmap (fmap takeDirectory) . execStackInPath "path --global-pkg-db"
getStackGhcLibDir = fmap (fmap $ (</> "lib/ghc/") . takeDirectory) . execStackInPath "path --compiler-bin"

getStackDist :: FilePath -> IO (Maybe FilePath)
getStackDist p = (trim <$>) <$> execStackInPath "path --dist-dir" p
Expand Down