Repository navigation
Compatibility of yesod-static with crypton-1.1. - #1916
leftaroundabout wants to merge 5 commits into
Conversation
| , hjsmin | ||
| , http-types >= 0.7 | ||
| , memory | ||
| , ram >= 0.21 && < 0.22 |
There was a problem hiding this comment.
You might want to allow ram 0.22 here. The build works fine and that version is required to support the latest tls package.
|
Thanks, this looks good to me. Do you mind bumping the patch version here for yesod-static? I'll get a release out shortly. |
That package has switched from `memory` to the fork `ram` (kazu-yamamoto/crypton@7912865). `yesod-static` still imported `Data.ByteArray` from `memory` though, leading to a confusing error about a missing instance of `ByteArrayAccess (Digest MD5)`, because `ByteArrayAccess` comes from `memory` but `crypton` only defines an instance of the `ram` version of `ByteArrayAccess`.
e8fb3f8 to
58c9fb7
Compare
Concerning yesodweb#1916.
|
@parsonsmatt I rebased on |
|
sounds great thanks! I'll release today once CI is green |
|
Presumably |
This package is now needed for use of `crypton` (since version 1.1), which previously only needed `memory` that is included in LTS Haskell. See yesodweb#1916
This package is now needed for use of `crypton` (since version 1.1), which previously only needed `memory` that is included in LTS Haskell. See yesodweb#1916
d5e86d3 to
a92ab5c
Compare
|
I think the testsuite needs fixes too. |
|
Also please rename the issue to include "yesod-static" |
|
@juhp ok. I don't know what's the right procedure for the lts-23 builds, though. |
Do you mean lts-24 or just crypton-1.0 in general? crypton-1.1 should land in the next Stackage Nightly snapshot hopefully. |
|
@juhp I mean the build with I see |
|
Ah right, I think for now it might be enough to replace though it wouldn't hurt to update stack.yaml to lts-24 at some point. (In principle we could add |
|
(An alternative could be to jump stack.yaml to nightly for now) |
|
Is the intention to fix previous versions of yesod-static as well? If the bounds aren't well-defined, previous versions of yesod-static may be solved for and then fail in compilation. |
|
Why aren't you removing the dependency on |
|
@sternenseemann I agree that's the proper thing to do, yes. I didn't do it because in the past I found such cabal-flag configuration a bit risky - works in principle fine, but would require careful testing with a bunch of different configurations. Certainly doable, but I didn't even know whether depending on |
|
Is this PR finished ? @parsonsmatt, perhaps it's time for a release ? |
|
AI analysis of the situation:
|
The
cryptonpackage has switched frommemoryto its forkram.yesod-staticstill importedData.ByteArrayfrommemorythough, leading to a confusing error about a missing instance ofByteArrayAccess (Digest MD5), becauseByteArrayAccesscame frommemorybutcryptononly defines an instance of theramversion ofByteArrayAccess.Note: I haven't checked the
rampackage very closely to see whether the switch is actually a good idea. An alternative would be to define the instances elsewhere. But the argument oframis thatmemoryis now unsupported, so switching to another package is perhaps unavoidable in the long term.Haven't bumped any versions or changelog, not sure that's applicable for a change like this?