Build #8 for word24-1.0.1

[all reports]

Package word24-1.0.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-27 08:53:19.998475 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0
Flags -buildtests

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring word24-1.0.1...
Building word24-1.0.1...
Failed to install word24-1.0.1
Build log ( /home/builder/.cabal/logs/word24-1.0.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-17159/word24-1.0.1'
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: error:
    • 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: error:
    • 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
cabal: Leaving directory '/tmp/cabal-tmp-17159/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

Test log

No test log was submitted for this report.