Skip to content

Compatibility with crypton-1.1.#1916

Open
leftaroundabout wants to merge 1 commit into
yesodweb:masterfrom
leftaroundabout:compatibility/crypton1.1
Open

Compatibility with crypton-1.1.#1916
leftaroundabout wants to merge 1 commit into
yesodweb:masterfrom
leftaroundabout:compatibility/crypton1.1

Conversation

@leftaroundabout
Copy link
Copy Markdown

The crypton package has switched from memory to its fork ram. yesod-static still imported Data.ByteArray from memory though, leading to a confusing error about a missing instance of ByteArrayAccess (Digest MD5), because ByteArrayAccess came from memory but crypton only defines an instance of the ram version of ByteArrayAccess.

Note: I haven't checked the ram package very closely to see whether the switch is actually a good idea. An alternative would be to define the instances elsewhere. But the argument of ram is that memory is 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?

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`.
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.

1 participant