update windows NUL for ghc 8.6.1
This should also work with older ghc, since the path is a windows device namespace path.
This commit is contained in:
parent
8873cf0789
commit
d2c351f547
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ devNull :: FilePath
|
|||
#ifndef mingw32_HOST_OS
|
||||
devNull = "/dev/null"
|
||||
#else
|
||||
devNull = "NUL"
|
||||
-- Use device namespace to prevent GHC from rewriting path
|
||||
devNull = "\\.\NUL"
|
||||
#endif
|
||||
|
||||
-- | Extract a desired handle from createProcess's tuple.
|
||||
|
|
Loading…
Add table
Reference in a new issue