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

Support GHC 9.4 #291

Closed
Bodigrim opened this issue May 23, 2022 · 1 comment · Fixed by #298
Closed

Support GHC 9.4 #291

Bodigrim opened this issue May 23, 2022 · 1 comment · Fixed by #298

Comments

@Bodigrim
Copy link
Contributor

$ cabal unpack cborg-0.2.7.0
$ cd cborg-0.2.7.0
$ cabal test -w ghc-9.4.0.20220501 --allow-newer
[ 4 of 14] Compiling Codec.CBOR.Decoding

src/Codec/CBOR/Decoding.hs:331:19: error:
    • Couldn't match expected type ‘Int64#’ with actual type ‘Int#’
    • In the first argument of ‘I64#’, namely ‘n’
      In the expression: I64# n
      In an equation for ‘toInt64’: toInt64 n = I64# n
    |
331 | toInt64  n = I64# n
    |                   ^

src/Codec/CBOR/Decoding.hs:332:19: error:
    • Couldn't match expected type ‘Word64#’ with actual type ‘Word#’
    • In the first argument of ‘W64#’, namely ‘n’
      In the expression: W64# n
      In an equation for ‘toWord64’: toWord64 n = W64# n
    |
332 | toWord64 n = W64# n
    |                   ^

src/Codec/CBOR/Decoding.hs:751:53: error:
    • Couldn't match expected type ‘Word64#’ with actual type ‘Word#’
    • In the first argument of ‘W64#’, namely ‘w#’
      In the first argument of ‘k’, namely ‘(W64# w#)’
      In the expression: k (W64# w#)
    |
751 |   Decoder (\k -> return (ConsumeTag (\w# -> k (W64# w#))))
    |                                                     ^^

src/Codec/CBOR/Decoding.hs:772:62: error:
    • Couldn't match expected type ‘Word64#’ with actual type ‘Word#’
    • In the first argument of ‘W64#’, namely ‘w#’
      In the first argument of ‘k’, namely ‘(W64# w#)’
      In the expression: k (W64# w#)
    |
772 |   Decoder (\k -> return (ConsumeTagCanonical (\w# -> k (W64# w#))))
    |                                                              ^^

src/Codec/CBOR/Decoding.hs:971:74: error:
    • Couldn't match expected type ‘Int64#’ with actual type ‘Int#’
    • In the first argument of ‘I64#’, namely ‘off#’
      In the first argument of ‘k’, namely ‘(I64# off#)’
      In the expression: k (I64# off#)
    |
971 | peekByteOffset = Decoder (\k -> return (PeekByteOffset (\off# -> k (I64# off#))))
    |
@juhp
Copy link

juhp commented Jun 18, 2022

Hmm I am seeing similar errors when I build cborg-2.6.0 & 2.7.0 with 32bit i686 ghc-8.10.7 (2.5.0 is okay).

I filed #293 about this.

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