haskell / primitive

This package provides various primitive memory-related operations.
Other
114 stars 58 forks source link

Build fails on GHC 9.6 #370

Closed 9999years closed 1 year ago

9999years commented 1 year ago
Data/Primitive/Types.hs:265:373: error: [GHC-83865]
    • Couldn't match type ‘Word64#’ with ‘Word#’
      Expected: Word64_#
        Actual: Word64#
    • In the fourth argument of ‘setWord64Array#’, namely ‘x#’
      In the first argument of ‘internal’, namely
        ‘(setWord64Array# arr# i n x#)’
      In the first argument of ‘unsafeCoerce#’, namely
        ‘(internal (setWord64Array# arr# i n x#))’
    |
265 | derivePrim(Word64, W64#, sIZEOF_WORD64, aLIGNMENT_WORD64,
    |

Data/Primitive/Types.hs:265:382: error: [GHC-83865]
    • Couldn't match type ‘Word64#’ with ‘Word#’
      Expected: Word64_#
        Actual: Word64#
    • In the fourth argument of ‘setWord64OffAddr#’, namely ‘x#’
      In the first argument of ‘internal’, namely
        ‘(setWord64OffAddr# addr# i n x#)’
      In the first argument of ‘unsafeCoerce#’, namely
        ‘(internal (setWord64OffAddr# addr# i n x#))’
    |
265 | derivePrim(Word64, W64#, sIZEOF_WORD64, aLIGNMENT_WORD64,
    |

Data/Primitive/Types.hs:280:369: error: [GHC-83865]
    • Couldn't match type ‘Int64#’ with ‘Int#’
      Expected: Int64_#
        Actual: Int64#
    • In the fourth argument of ‘setInt64Array#’, namely ‘x#’
      In the first argument of ‘internal’, namely
        ‘(setInt64Array# arr# i n x#)’
      In the first argument of ‘unsafeCoerce#’, namely
        ‘(internal (setInt64Array# arr# i n x#))’
    |
280 | derivePrim(Int64, I64#, sIZEOF_INT64, aLIGNMENT_INT64,
    |

Data/Primitive/Types.hs:280:378: error: [GHC-83865]
    • Couldn't match type ‘Int64#’ with ‘Int#’
      Expected: Int64_#
        Actual: Int64#
    • In the fourth argument of ‘setInt64OffAddr#’, namely ‘x#’
      In the first argument of ‘internal’, namely
        ‘(setInt64OffAddr# addr# i n x#)’
      In the first argument of ‘unsafeCoerce#’, namely
        ‘(internal (setInt64OffAddr# addr# i n x#))’
    |
280 | derivePrim(Int64, I64#, sIZEOF_INT64, aLIGNMENT_INT64,
    |
9999years commented 1 year ago

Sorry, was on an old version.