Skip to content

32 bit CPUs: Couldn't match expected type ‘Word#’ with actual type ‘Word64#’

Getting this on PowerPC and Arm:

libraries/base/GHC/Word.hs:605:39: error:
    • Couldn't match expected type ‘Word#’ with actual type ‘Word64#’
    • In the first argument of ‘eqWord#’, namely ‘x’
      In the first argument of ‘isTrue#’, namely ‘(x `eqWord#` y)’
      In the expression: isTrue# (x `eqWord#` y)

libraries/base/GHC/Word.hs:605:51: error:
    • Couldn't match expected type ‘Word#’ with actual type ‘Word64#’
    • In the second argument of ‘eqWord#’, namely ‘y’
      In the first argument of ‘isTrue#’, namely ‘(x `eqWord#` y)’
      In the expression: isTrue# (x `eqWord#` y)

libraries/base/GHC/Word.hs:606:39: error:
    • Couldn't match expected type ‘Word#’ with actual type ‘Word64#’
    • In the first argument of ‘neWord#’, namely ‘x’
      In the first argument of ‘isTrue#’, namely ‘(x `neWord#` y)’
      In the expression: isTrue# (x `neWord#` y)

libraries/base/GHC/Word.hs:606:51: error:
    • Couldn't match expected type ‘Word#’ with actual type ‘Word64#’
    • In the second argument of ‘neWord#’, namely ‘y’
      In the first argument of ‘isTrue#’, namely ‘(x `neWord#` y)’
      In the expression: isTrue# (x `neWord#` y)

Same happens for Int64 in GHC/Int.hs.

Patch on the way.

Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information