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

llvm-hs-pure: work with bytestring 0.11.x #389

Open
wants to merge 1 commit into
base: llvm-12
Choose a base branch
from

Conversation

zenhack
Copy link

@zenhack zenhack commented Mar 17, 2022

This patch:

  • Relaxes the version bound on bytestring for llvm-hs-pure
  • Fixes a couple trivial build errors due to ambiguous symbol
    resoltions; bytestring 0.11 added some functions called snoc,
    foldr and such.

It would probably make sense to do the same for llvm-hs, but I am having trouble getting it to build against my local version of llvm, so decided to punt for now; for my own project I may end up just shelling out to llc rather than try to link against the library.

This patch:

- Relaxes the version bound on bytestring for llvm-hs-pure
- Fixes a couple trivial build errors due to ambiguous symbol
  resoltions; bytestring 0.11 added some functions called snoc,
  foldr and such.
zenhack added a commit to Glow-Lang/glow2-haskell that referenced this pull request Mar 17, 2022
1. The current version isn't on hackage yet, see llvm-hs/llvm-hs#369
2. We needed to patch the version bounds to get this to build with our
   other dependencies; see llvm-hs/llvm-hs#389
@pnotequalnp
Copy link

For me llvm-hs also builds with bytestring 0.11.3 on GHC 9.2.2. The library lacks an upper bound so it doesn't necessarily need changing, though I think it would be better practice to add one. The only required change is to the test suite:

-    bytestring >= 0.10 && < 0.11,
+    bytestring >= 0.10 && < 0.12,

@guibou
Copy link

guibou commented Sep 21, 2022

I just saw this MR, sorry, I've done the same in #406.

@Bodigrim
Copy link

Bodigrim commented Feb 4, 2023

As a Hackage trustee I made a revision, allowing to build llvm-hs-pure with GHC 9.2 and 9.4.

@zenhack
Copy link
Author

zenhack commented Feb 5, 2023

@Bodigrim, does it actually build with those versions? I'm thoroughly context-switched out at this point, but this patch actually has some (minor) code changes, rather than just bumping the version.

@Bodigrim
Copy link

Bodigrim commented Feb 5, 2023

@zenhack it does. The revision allows bytestring < 0.11.3.0, while your patch extends compatibilty window up to bytestring < 0.11.5.0 (which is obviously better).

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

Successfully merging this pull request may close these issues.

None yet

4 participants