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

Migration instructions for 0.7 #2

Open
locallycompact opened this issue Mar 28, 2023 · 5 comments
Open

Migration instructions for 0.7 #2

locallycompact opened this issue Mar 28, 2023 · 5 comments

Comments

@locallycompact
Copy link

Hi, with the removal of System.PosixCompat.User, what should downstream users be doing who were depending on getUserEntryForName, for example?

@andreasabel
Copy link
Member

@locallycompact : If you found an answer to your question, could you please document it here?

@locallycompact
Copy link
Author

Solution was to just use https://hackage.haskell.org/package/unix-2.8.1.1/docs/System-Posix-User.html

@locallycompact
Copy link
Author

Reopening due to dhall-lang/dhall-haskell#2496 (comment)

@mitchellwrosen
Copy link
Member

mitchellwrosen commented Mar 28, 2023

System.PosixCompat.User was removed because every exposed function either returned dummy data or threw an exception at runtime. I'm not sure why one would ever want that functionality. So, I don't believe there are any users who were depending on a "cross-platform" getUserEntryForName.

Because unix-2.8 changed the shape of a type exposed in that module, the simplest way to maintain unix-compat moving forward was to delete that module entirely.

@mitchellwrosen
Copy link
Member

As far as how to fix dhall-haskell: I'm not sure. I'm sorry for the breakage, but I think in some sense it may have been caused in the first place by unix-compat purporting to have a working getUserEntryForName on Windows.

Has anyone on Windows tried using those code paths in dhall-haskell? If they have, would they not eventually come to the dhall-haskell issue tracker with a bug report?

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

3 participants