Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Configuring rangemin-1.1.1... Building rangemin-1.1.1... Failed to install rangemin-1.1.1 Build log ( /home/builder/.cabal/logs/rangemin-1.1.1.log ): cabal: Entering directory '/tmp/cabal-tmp-9384/rangemin-1.1.1' Configuring rangemin-1.1.1... Building rangemin-1.1.1... Preprocessing library rangemin-1.1.1... on the commandline: warning: The -fvia-c flag does nothing; it will be removed in a future GHC release Data/RangeMin/Internal/HandyList.hs:2:16: warning: -fglasgow-exts is deprecated: Use individual extensions instead [1 of 6] Compiling Data.RangeMin.Internal.HandyNumeric ( Data/RangeMin/Internal/HandyNumeric.hs, dist/build/Data/RangeMin/Internal/HandyNumeric.o ) Data/RangeMin/Internal/HandyNumeric.hs:19:64: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: ans# `eqWord#` 0## In the expression: if ans# `eqWord#` 0## then intLog2 x# else 16# +# intLog2 ans# In the expression: let ans# = uncheckedShiftRL# x# 16# in if ans# `eqWord#` 0## then intLog2 x# else 16# +# intLog2 ans# Data/RangeMin/Internal/HandyNumeric.hs:20:63: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: ans# `eqWord#` 0## In the expression: if ans# `eqWord#` 0## then intLog3 x# else 8# +# intLog3 ans# In the expression: let ans# = uncheckedShiftRL# x# 8# in if ans# `eqWord#` 0## then intLog3 x# else 8# +# intLog3 ans# Data/RangeMin/Internal/HandyNumeric.hs:21:63: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: ans# `eqWord#` 0## In the expression: if ans# `eqWord#` 0## then intLog4 x# else 4# +# intLog4 ans# In the expression: let ans# = uncheckedShiftRL# x# 4# in if ans# `eqWord#` 0## then intLog4 x# else 4# +# intLog4 ans# Data/RangeMin/Internal/HandyNumeric.hs:22:63: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: ans# `eqWord#` 0## In the expression: if ans# `eqWord#` 0## then intLog5 x# else 2# +# intLog5 ans# In the expression: let ans# = uncheckedShiftRL# x# 2# in if ans# `eqWord#` 0## then intLog5 x# else 2# +# intLog5 ans# Data/RangeMin/Internal/HandyNumeric.hs:23:25: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: x# `leWord#` 1## In the expression: if x# `leWord#` 1## then 0# else 1# In an equation for ‘intLog5’: intLog5 x# = if x# `leWord#` 1## then 0# else 1# Data/RangeMin/Internal/HandyNumeric.hs:35:70: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: (w# `and#` w'#) `eqWord#` 0## In the expression: let w# = int2Word# x# w'# = w# `minusWord#` 1## in (w# `and#` w'#) `eqWord#` 0## In an equation for ‘isPow2’: isPow2 (I# x#) = let w# = int2Word# x# w'# = w# `minusWord#` 1## in (w# `and#` w'#) `eqWord#` 0## Data/RangeMin/Internal/HandyNumeric.hs:62:51: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: r ==# 0# In the expression: if r ==# 0# then I# m else I# r In the expression: let r = n `remInt#` m in if r ==# 0# then I# m else I# r cabal: Leaving directory '/tmp/cabal-tmp-9384/rangemin-1.1.1' cabal: Error: some packages failed to install: rangemin-1.1.1 failed during the building phase. The exception was: ExitFailure 1