Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Commit 1bb1be2

Browse files
committed
Set the working dir of the haskell client to the projects dir
1 parent 04037ad commit 1bb1be2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

haskell/LTHaskellClient.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import Network (PortID (..), connectTo,
55
withSocketsDo)
6-
import System.Directory (getCurrentDirectory)
6+
import System.Directory (getCurrentDirectory, setCurrentDirectory)
77
import System.Environment (getArgs)
88
import System.Exit (exitSuccess)
99
import System.IO (Handle, hClose, hFlush, hGetLine,
@@ -30,6 +30,9 @@ main = withSocketsDo $ do
3030
[portStr, clientIdStr, projectDir] <- getArgs
3131
let port = fromIntegral (read portStr :: Int)
3232
clientId = read clientIdStr
33+
34+
setCurrentDirectory projectDir
35+
3336
handle <- connectTo "localhost" (PortNumber port)
3437
client <- startSession projectDir
3538

0 commit comments

Comments
 (0)