Build #9 for Random123-0.1.0

[all reports]

Package Random123-0.1.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-21 14:04:48.92928 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies array-0.5.1.1, base-4.9.0.0, random-1.1
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring random-1.1...
Building random-1.1...
Installed random-1.1
Configuring Random123-0.1.0...
Building Random123-0.1.0...
Failed to install Random123-0.1.0
Build log ( /home/builder/.cabal/logs/Random123-0.1.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-26028/Random123-0.1.0'
Configuring Random123-0.1.0...
Building Random123-0.1.0...
Preprocessing library Random123-0.1.0...
[1 of 6] Compiling System.Random.Random123.Types ( System/Random/Random123/Types.hs, dist/build/System/Random/Random123/Types.o )

System/Random/Random123/Types.hs:36:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array2FromInteger :: Bits a => Integer -> Array2 a
        at System/Random/Random123/Types.hs:34:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array2FromInteger :: Bits a => Integer -> Array2 a
    • In the expression: fromInteger i
      In an equation for ‘x1’: x1 = fromInteger i
      In an equation for ‘array2FromInteger’:
          array2FromInteger i
            = (x0, x1)
            where
                x1 = fromInteger i
                bits = bitSize x1
                x0 = fromInteger (i `shiftR` bits)

System/Random/Random123/Types.hs:38:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array2FromInteger :: Bits a => Integer -> Array2 a
        at System/Random/Random123/Types.hs:34:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array2FromInteger :: Bits a => Integer -> Array2 a
    • In the expression: fromInteger (i `shiftR` bits)
      In an equation for ‘x0’: x0 = fromInteger (i `shiftR` bits)
      In an equation for ‘array2FromInteger’:
          array2FromInteger i
            = (x0, x1)
            where
                x1 = fromInteger i
                bits = bitSize x1
                x0 = fromInteger (i `shiftR` bits)

System/Random/Random123/Types.hs:42:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array4FromInteger :: Bits a => Integer -> Array4 a
        at System/Random/Random123/Types.hs:40:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array4FromInteger :: Bits a => Integer -> Array4 a
    • In the expression: fromInteger i
      In an equation for ‘x3’: x3 = fromInteger i
      In an equation for ‘array4FromInteger’:
          array4FromInteger i
            = (x0, x1, x2, x3)
            where
                x3 = fromInteger i
                bits = bitSize x3
                x0 = fromInteger (i `shiftR` (bits * 3))
                x1 = fromInteger (i `shiftR` (bits * 2))
                ....

System/Random/Random123/Types.hs:44:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array4FromInteger :: Bits a => Integer -> Array4 a
        at System/Random/Random123/Types.hs:40:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array4FromInteger :: Bits a => Integer -> Array4 a
    • In the expression: fromInteger (i `shiftR` (bits * 3))
      In an equation for ‘x0’: x0 = fromInteger (i `shiftR` (bits * 3))
      In an equation for ‘array4FromInteger’:
          array4FromInteger i
            = (x0, x1, x2, x3)
            where
                x3 = fromInteger i
                bits = bitSize x3
                x0 = fromInteger (i `shiftR` (bits * 3))
                x1 = fromInteger (i `shiftR` (bits * 2))
                ....

System/Random/Random123/Types.hs:45:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array4FromInteger :: Bits a => Integer -> Array4 a
        at System/Random/Random123/Types.hs:40:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array4FromInteger :: Bits a => Integer -> Array4 a
    • In the expression: fromInteger (i `shiftR` (bits * 2))
      In an equation for ‘x1’: x1 = fromInteger (i `shiftR` (bits * 2))
      In an equation for ‘array4FromInteger’:
          array4FromInteger i
            = (x0, x1, x2, x3)
            where
                x3 = fromInteger i
                bits = bitSize x3
                x0 = fromInteger (i `shiftR` (bits * 3))
                x1 = fromInteger (i `shiftR` (bits * 2))
                ....

System/Random/Random123/Types.hs:46:10: error:
    • Could not deduce (Num a) arising from a use of ‘fromInteger’
      from the context: Bits a
        bound by the type signature for:
                   array4FromInteger :: Bits a => Integer -> Array4 a
        at System/Random/Random123/Types.hs:40:1-50
      Possible fix:
        add (Num a) to the context of
          the type signature for:
            array4FromInteger :: Bits a => Integer -> Array4 a
    • In the expression: fromInteger (i `shiftR` bits)
      In an equation for ‘x2’: x2 = fromInteger (i `shiftR` bits)
      In an equation for ‘array4FromInteger’:
          array4FromInteger i
            = (x0, x1, x2, x3)
            where
                x3 = fromInteger i
                bits = bitSize x3
                x0 = fromInteger (i `shiftR` (bits * 3))
                x1 = fromInteger (i `shiftR` (bits * 2))
                ....
cabal: Leaving directory '/tmp/cabal-tmp-26028/Random123-0.1.0'
cabal: Error: some packages failed to install:
Random123-0.1.0 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.