We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e240f6 commit 7af8f19Copy full SHA for 7af8f19
1 file changed
src/Main.hs
@@ -1,3 +1,5 @@
1
+{-# LANGUAGE CPP #-}
2
+
3
module Main where
4
5
import System.Environment (getProgName, getExecutablePath)
@@ -10,7 +12,11 @@ import Daemonize (daemonize)
10
12
import Types (Command(..))
11
13
14
defaultSocketFilename :: FilePath
15
+#ifdef mingw32_HOST_OS
16
+defaultSocketFilename = show 43210
17
+#else
18
defaultSocketFilename = ".hdevtools.sock"
19
+#endif
20
21
getSocketFilename :: Maybe FilePath -> FilePath
22
getSocketFilename Nothing = defaultSocketFilename
0 commit comments