
Hi GHC devs, While compiling the primitive package using ghc head I ran into the following error: Data/Primitive/Types.hs:265:870: error: • 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, | Any idea what this is and how it can be fixed? -harendra

Forgot to add subject in the previous email.
On Sat, 27 Nov 2021 at 01:01, Harendra Kumar
Hi GHC devs,
While compiling the primitive package using ghc head I ran into the following error:
Data/Primitive/Types.hs:265:870: error: • 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, |
Any idea what this is and how it can be fixed?
-harendra

Hi,
We now always use Word64# to implement Word64.
You can find the patch for primitive and many other packages in head.hackage:
https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/patches/primitive-...
Cheers,
Sylvain
Le 26 nov. 2021 à 20:35, à 20:35, Harendra Kumar
Forgot to add subject in the previous email.
On Sat, 27 Nov 2021 at 01:01, Harendra Kumar
wrote: Hi GHC devs,
While compiling the primitive package using ghc head I ran into the following error:
Data/Primitive/Types.hs:265:870: error: • 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, |
Any idea what this is and how it can be fixed?
-harendra
------------------------------------------------------------------------
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (2)
-
Harendra Kumar
-
Sylvain Henry