
#11750: 32 bit CPUs: Couldn't match expected type ‘Word#’ with actual type ‘Word64#’ -------------------------------------+------------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11750 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler