Build #7 for FixedPoint-simple-0.3.1

[all reports]

Package FixedPoint-simple-0.3.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-23 20:26:10.164997 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring FixedPoint-simple-0.3.1...
Building FixedPoint-simple-0.3.1...
Failed to install FixedPoint-simple-0.3.1
Build log ( /home/builder/.cabal/logs/FixedPoint-simple-0.3.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-8714/FixedPoint-simple-0.3.1'
Configuring FixedPoint-simple-0.3.1...
Building FixedPoint-simple-0.3.1...
Preprocessing library FixedPoint-simple-0.3.1...
[1 of 1] Compiling Data.FixedPoint  ( Data/FixedPoint.lhs, dist/build/Data/FixedPoint.o )

Data/FixedPoint.lhs:547:30: error:
    • Could not deduce (Num a) arising from the literal ‘0’
      from the context: (Bits a, Ord a)
        bound by the instance declaration at Data/FixedPoint.lhs:541:12-45
      Possible fix:
        add (Num a) to the context of the instance declaration
    • In the second argument of ‘(<)’, namely ‘0’
      In the expression: a < 0
      In the first argument of ‘(.)’, namely
        ‘(if a < 0 then
              \ x
                -> foldl setBit x [bitSize a - 1, bitSize a - 2 .. bitSize a - i]
          else
              id)’

Data/FixedPoint.lhs:584:28: error:
    • Could not deduce (Num a) arising from a use of ‘fromIntegral’
      from the context: (Bounded a, Ord a, Bits a)
        bound by the instance declaration at Data/FixedPoint.lhs:583:12-59
      Possible fix:
        add (Num a) to the context of the instance declaration
    • In the expression: fromIntegral (negate (2 ^ (bitSize r - 1)))
      In an equation for ‘r’:
          r = fromIntegral (negate (2 ^ (bitSize r - 1)))
      In the expression:
        let r = fromIntegral (negate (2 ^ (bitSize r - 1))) in r

Data/FixedPoint.lhs:585:28: error:
    • Could not deduce (Num a) arising from a use of ‘fromIntegral’
      from the context: (Bounded a, Ord a, Bits a)
        bound by the instance declaration at Data/FixedPoint.lhs:583:12-59
      Possible fix:
        add (Num a) to the context of the instance declaration
    • In the expression: fromIntegral (2 ^ (bitSize r - 1) - 1)
      In an equation for ‘r’: r = fromIntegral (2 ^ (bitSize r - 1) - 1)
      In the expression:
        let r = fromIntegral (2 ^ (bitSize r - 1) - 1) in r
cabal: Leaving directory '/tmp/cabal-tmp-8714/FixedPoint-simple-0.3.1'
cabal: Error: some packages failed to install:
FixedPoint-simple-0.3.1 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.