Build #9 for Twofish-0.3.1

[all reports]

Package Twofish-0.3.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-22 23:10:28.374296 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies array-0.5.1.1, base-4.9.0.0, binary-0.8.3.0, bytestring-0.10.8.1, cereal-0.5.4.0, crypto-api-0.13.2, largeword-1.2.5, mtl-2.2.1, tagged-0.8.5
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring cereal-0.5.4.0...
Configuring entropy-0.3.7...
Building cereal-0.5.4.0...
Building entropy-0.3.7...
Installed entropy-0.3.7
Configuring largeword-1.2.5...
Configuring mtl-2.2.1...
Installed cereal-0.5.4.0
Building largeword-1.2.5...
Building mtl-2.2.1...
Configuring transformers-compat-0.5.1.4...
Installed largeword-1.2.5
Building transformers-compat-0.5.1.4...
Installed mtl-2.2.1
Installed transformers-compat-0.5.1.4
Configuring tagged-0.8.5...
Building tagged-0.8.5...
Installed tagged-0.8.5
Configuring crypto-api-0.13.2...
Building crypto-api-0.13.2...
Installed crypto-api-0.13.2
Configuring Twofish-0.3.1...
Building Twofish-0.3.1...
Failed to install Twofish-0.3.1
Build log ( /home/builder/.cabal/logs/Twofish-0.3.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-19094/Twofish-0.3.1'
Configuring Twofish-0.3.1...
Building Twofish-0.3.1...
Preprocessing library Twofish-0.3.1...
[1 of 2] Compiling Data.Bitlib      ( Data/Bitlib.hs, dist/build/Data/Bitlib.o )

Data/Bitlib.hs:11:15: error:
    • Could not deduce (Num b) arising from a use of ‘fromInteger’
      from the context: (Integral a, Bits a, Bits b)
        bound by the type signature for:
                   pack :: (Integral a, Bits a, Bits b) => [a] -> b
        at Data/Bitlib.hs:10:1-48
      Possible fix:
        add (Num b) to the context of
          the type signature for:
            pack :: (Integral a, Bits a, Bits b) => [a] -> b
    • In the expression: fromInteger 0
      In an equation for ‘pack’: pack [] = fromInteger 0

Data/Bitlib.hs:20:35: error:
    • Could not deduce (Num b1) arising from a use of ‘fromIntegral’
      from the context: (Integral a, Bits a, Num b, Bits b)
        bound by the type signature for:
                   unpack :: (Integral a, Bits a, Num b, Bits b) => a -> [b]
        at Data/Bitlib.hs:15:1-57
      or from: (Integral a1, Bits a1, Bits b1)
        bound by the type signature for:
                   doUnpack :: (Integral a1, Bits a1, Bits b1) => Int -> a1 -> [b1]
        at Data/Bitlib.hs:17:11-69
      Possible fix:
        add (Num b1) to the context of
          the type signature for:
            doUnpack :: (Integral a1, Bits a1, Bits b1) => Int -> a1 -> [b1]
    • In the first argument of ‘(:)’, namely
        ‘(fromIntegral (x .&. 255))’
      In the expression:
        (fromIntegral (x .&. 255)) : doUnpack (n + 8) (x `shiftR` 8)
      In an equation for ‘doUnpack’:
          doUnpack n x
            | n == bitSize x = []
            | otherwise
            = (fromIntegral (x .&. 255)) : doUnpack (n + 8) (x `shiftR` 8)

Data/Bitlib.hs:30:30: error:
    • Could not deduce (Num b) arising from a use of ‘unpack’
      from the context: (Integral a, Bits a, Bits b)
        bound by the type signature for:
                   unpackMany :: (Integral a, Bits a, Bits b) => [a] -> [b]
        at Data/Bitlib.hs:28:1-56
      Possible fix:
        add (Num b) to the context of
          the type signature for:
            unpackMany :: (Integral a, Bits a, Bits b) => [a] -> [b]
    • In the expression: (unpack x)
      In the first argument of ‘concat’, namely
        ‘[(unpack x), (unpackMany xs)]’
      In the expression: concat [(unpack x), (unpackMany xs)]
cabal: Leaving directory '/tmp/cabal-tmp-19094/Twofish-0.3.1'
cabal: Error: some packages failed to install:
Twofish-0.3.1 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.