Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fail to build under ghc 8.10.7 and 9.2.1 #37

Open
soulomoon opened this issue Feb 21, 2022 · 1 comment
Open

fail to build under ghc 8.10.7 and 9.2.1 #37

soulomoon opened this issue Feb 21, 2022 · 1 comment

Comments

@soulomoon
Copy link

soulomoon commented Feb 21, 2022

Please consider improve build reproducibility using nix.

Readme state that it build for GHC(>=8.6), cabal-install(>=2.4). But the base in cabal file is for 9.2 or higher.
Also not build under 9.2.1,
with meta info:

vscode ➜ /workspaces/z-data (master ✗) $ cabal --version
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library 

vscode ➜ /workspaces/z-data (master ✗) $ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.2.1

with complains:

Z/Data/Array/Unaligned.hs:263:45: error:
    * Couldn't match expected type `Word8#' with actual type `Word#'
    * In the third argument of `writeWord8Array#', namely
        `(uncheckedShiftRL# x# 8#)'
      In the expression:
        writeWord8Array# mba# i# (uncheckedShiftRL# x# 8#) s0#
      In an equation for `s1#':
          s1# = writeWord8Array# mba# i# (uncheckedShiftRL# x# 8#) s0#
    |
263 |         let s1# = writeWord8Array# mba# i# (uncheckedShiftRL# x# 8#) s0#
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^

Z/Data/Array/Unaligned.hs:263:63: error:
    * Couldn't match expected type `Word#' with actual type `Word16#'
    * In the first argument of `uncheckedShiftRL#', namely `x#'
      In the third argument of `writeWord8Array#', namely
@janlely
Copy link

janlely commented Aug 23, 2022

succeed under mac m1, 9.2.2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants