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] Document use and integration of MSYS2 #9713

Closed
hasufell opened this issue Feb 15, 2024 · 3 comments · Fixed by #9723
Closed

[Windows] Document use and integration of MSYS2 #9713

hasufell opened this issue Feb 15, 2024 · 3 comments · Fixed by #9723

Comments

@hasufell
Copy link
Member

There's zero documentation for windows users on how to utilize msys2 and link to system C libraries.

So far, GHCup is doing silent work here by setting extra-lib-dirs, extra-include-dirs and extra-prog-path to the correct locations: https://github.com/haskell/ghcup-hs/blob/2fdf896fbdd338ba6b4244c47b10dcd4067552e0/scripts/bootstrap/bootstrap-haskell#L598

The semantics and implications of these settings on windows should be documented, especially in light of MSYS2 environments.

Also see:

GHCup should not be where this is documented. Cabal needs to step up its game on windows.

@hasufell
Copy link
Member Author

@Kleidukos @runeksvendsen

@bradrn
Copy link

bradrn commented Feb 15, 2024

I’ve wished for proper documentation for this area for a long time. Happy to help write some if I can, though it’s been a while since I’ve done really large amounts of work on Windows.

@jasagredo
Copy link
Collaborator

Feel free to review/propose changes on #9723 where I summarized what I know of using Windows + Cabal + GHC. One thing I think that document is missing is a "Common problems on Windows and how to solve them" section, but yet I think what I wrote can serve as a first version.

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

Successfully merging a pull request may close this issue.

3 participants