Skip to content

Commit

Permalink
use ghc from PATH instead of hardcoded one
Browse files Browse the repository at this point in the history
  • Loading branch information
jagajaga committed Feb 23, 2015
1 parent 9d4ab20 commit 6d8653d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Config/Dyre/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import System.FilePath ( (</>) )
import System.Directory ( getCurrentDirectory, doesFileExist
, createDirectoryIfMissing )
import Control.Exception ( bracket )
import GHC.Paths ( ghc )

import Config.Dyre.Paths ( getPaths )
import Config.Dyre.Params ( Params(..) )
Expand Down Expand Up @@ -47,7 +46,7 @@ customCompile params@Params{statusOut = output} = do
errFile <- getErrorPath params
result <- bracket (openFile errFile WriteMode) hClose $ \errHandle -> do
ghcOpts <- makeFlags params configFile tempBinary cacheDir libsDir
ghcProc <- runProcess ghc ghcOpts (Just cacheDir) Nothing
ghcProc <- runProcess "ghc" ghcOpts (Just cacheDir) Nothing
Nothing Nothing (Just errHandle)
waitForProcess ghcProc

Expand Down
2 changes: 1 addition & 1 deletion dyre.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ library
Config.Dyre.Compile,
Config.Dyre.Relaunch
build-depends: base >= 4 && < 5, process, filepath,
directory, ghc-paths, time, binary,
directory, time, binary,
executable-path, xdg-basedir, io-storage

if os(windows)
Expand Down

0 comments on commit 6d8653d

Please sign in to comment.