Skip to content

fail to build under ghc 8.10.7 and 9.2.1 #37

@soulomoon

Description

@soulomoon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions