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

Won't install on Windows because of dependency on the unix package for /Platform/DevLog.hs #53

Open
Andrew-Clow opened this issue Aug 31, 2022 · 0 comments

Comments

@Andrew-Clow
Copy link

Platform/DevLog.hs uses a few System.Posix functions to test and the permissions on the hard-coded logfile path "/tmp/nri-prelude-logs" before using it.

System.Directory can supply OS-relevant locations for logfiles, so that could work around the hard coded path.

writeSpanToDevLog ensures that everyone can read and write to the logs (System.Posix.stdFileMode) before appending to it. This could perhaps be in a conditional compilation section, but I honestly don't know whether it's possible to use conditional compilation around the inclusion of the unix package in package.yaml.

If this dependency could be moved aside for those of us blighted by developing on Windows, that would be very helpful. Apologies if this is an unwelcome issue to raise.

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

1 participant