Resolving dependencies... Configuring word24-1.0.1... Building word24-1.0.1... Preprocessing library word24-1.0.1... [1 of 2] Compiling Data.Word.Word24 ( src/Data/Word/Word24.hs, dist/build/Data/Word/Word24.o ) src/Data/Word/Word24.hs:117:7: Couldn't match expected type ‘Bool’ with actual type ‘Int#’ In the expression: i# >=# 0# In a stmt of a pattern guard for an equation for ‘shift’: i# >=# 0# In an equation for ‘shift’: (W24# x#) `shift` (I# i#) | i# >=# 0# = W24# (narrow24Word# (x# `shiftL#` i#)) | otherwise = W24# (x# `shiftRL#` negateInt# i#) src/Data/Word/Word24.hs:120:7: Couldn't match expected type ‘Bool’ with actual type ‘Int#’ In the expression: i'# ==# 0# In a stmt of a pattern guard for an equation for ‘rotate’: i'# ==# 0# In an equation for ‘rotate’: (W24# x#) `rotate` i | i'# ==# 0# = W24# x# | otherwise = W24# (narrow24Word# ((x# `uncheckedShiftL#` i'#) `or#` (x# `uncheckedShiftRL#` (24# -# i'#)))) where !(I# i'#) = i `mod` 24 Failed to install word24-1.0.1 cabal: Error: some packages failed to install: word24-1.0.1 failed during the building phase. The exception was: ExitFailure 1