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

Broken by base64 1.0 #40

Closed
sternenseemann opened this issue Feb 11, 2025 · 5 comments · Fixed by #41
Closed

Broken by base64 1.0 #40

sternenseemann opened this issue Feb 11, 2025 · 5 comments · Fixed by #41

Comments

@sternenseemann
Copy link

[3 of 7] Compiling Network.Matrix.Identity

src/Network/Matrix/Identity.hs:169:27: error: [GHC-83865]
    • Couldn't match type ‘base64-1.0:Data.Base64.Types.Internal.Base64
                             base64-1.0:Data.Base64.Types.Internal.UrlUnpadded
                             Data.Text.Internal.Lazy.Text’
                     with ‘Data.Text.Internal.Lazy.Text’
      Expected: Data.ByteString.Lazy.Internal.ByteString
                -> Data.Text.Internal.Lazy.LazyText
        Actual: Data.ByteString.Lazy.Internal.ByteString
                -> base64-1.0:Data.Base64.Types.Internal.Base64
                     base64-1.0:Data.Base64.Types.Internal.UrlUnpadded
                     Data.Text.Internal.Lazy.Text
    • In the first argument of ‘(.)’, namely ‘encodeBase64Unpadded’
      In the second argument of ‘(.)’, namely
        ‘encodeBase64Unpadded
           . bytestringDigest . sha256 . fromStrict . encodeUtf8’
      In the expression:
        toStrict
          . encodeBase64Unpadded
              . bytestringDigest . sha256 . fromStrict . encodeUtf8
    |
169 | encodeSHA256 = toStrict . encodeBase64Unpadded . bytestringDigest . sha256 . fromStrict . encodeUtf8
    |                           ^^^^^^^^^^^^^^^^^^^^
@TristanCacqueray
Copy link
Contributor

Hey, do you know which version is that?

@sternenseemann
Copy link
Author

0.1.5.0, apologies.

@TristanCacqueray
Copy link
Contributor

Ok thanks, I'll fix that in #41

@TristanCacqueray
Copy link
Contributor

Thank you for the headsup @sternenseemann , here is the fix 5b6da6f , i'll make a new release once it passes the CI.

@TristanCacqueray
Copy link
Contributor

It took a while to get haskell-ci working, but the fix is now live at https://hackage.haskell.org/package/matrix-client-0.1.6.0

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 a pull request may close this issue.

2 participants