Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows error: cannot open NUL #7

Closed
snoyberg opened this issue Jul 18, 2019 · 2 comments
Closed

Windows error: cannot open NUL #7

snoyberg opened this issue Jul 18, 2019 · 2 comments

Comments

@snoyberg
Copy link
Collaborator

I've only seen this recently, so I think it may be an interaction with newer GHCs. Running the following on Windows and GHC 8.6.5 fails:

#!/usr/bin/env stack
-- stack --resolver lts-13.28 script
import System.IO.Silently

main :: IO ()
main = silence $ pure ()

Error message:

Main.hs: NUL: openFile: does not exist (No such file or directory)

This does not occur with GHC 8.2.2. Still testing on 8.4.4.

By seeming complete happenstance, I merged a PR recently which instead uses \\.\NUL. I can test that out next and open a PR.

@snoyberg
Copy link
Collaborator Author

Confirmed that it does not error on GHC 8.4.4.

snoyberg added a commit that referenced this issue Jul 21, 2019
Use different Windows NUL device for GHC 8.6.5 #7
@andreasabel
Copy link
Collaborator

Presumably fixed by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants