Compiling "primitive" with ghc head

Sylvain Henry sylvain at haskus.fr
Fri Nov 26 20:00:12 UTC 2021


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-0.7.3.0.patch


Cheers,
Sylvain
⁣

Le 26 nov. 2021 à 20:35, à 20:35, Harendra Kumar <harendra.kumar at gmail.com> a écrit:
>Forgot to add subject in the previous email.
>
>On Sat, 27 Nov 2021 at 01:01, Harendra Kumar <harendra.kumar at gmail.com>
>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 at haskell.org
>http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20211126/ced40f22/attachment.html>


More information about the ghc-devs mailing list