Build #2 for Random123-0.1.1
Package | Random123-0.1.1 |
---|
Install | BuildFailed |
---|---|
Docs | NotTried |
Tests | NotTried |
Time submitted | unknown |
---|---|
Compiler | ghc-7.6.3 |
OS | linux |
Arch | x86_64 |
Dependencies | random-1.0.1.1, base-4.6.0.1, array-0.4.0.1 |
Flags | none |
Code Coverage
No Code Coverage was submitted for this report.
Build log
[view raw]
Resolving dependencies... Configuring Random123-0.1.1... Building Random123-0.1.1... Preprocessing library Random123-0.1.1... [1 of 6] Compiling System.Random.Random123.Types ( System/Random/Random123/Types.hs, dist/build/System/Random/Random123/Types.o ) [2 of 6] Compiling System.Random.Random123.Misc ( System/Random/Random123/Misc.hs, dist/build/System/Random/Random123/Misc.o ) [3 of 6] Compiling System.Random.Random123.Threefry ( System/Random/Random123/Threefry.hs, dist/build/System/Random/Random123/Threefry.o ) System/Random/Random123/Threefry.hs:98:14: Could not deduce (Num a) arising from a use of `+' from the context (Bits a) bound by the type signature for sbox' :: Bits a => Int -> (a -> RotationConstants) -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:95:10-74 Possible fix: add (Num a) to the context of the type signature for sbox' :: Bits a => Int -> (a -> RotationConstants) -> Array2 a -> Array2 a In the expression: x0 + x1 In an equation for x0': x0' = x0 + x1 In an equation for sbox': sbox' r r_constant (!x0, !x1) = (x0', x1') where rot = getRotationConstant (r_constant (undefined :: a)) (r `mod` 8) x0' = x0 + x1 x1' = x0' `xor` (x1 `rotate` rot) System/Random/Random123/Threefry.hs:142:18: Could not deduce (Num a) arising from a use of `addTuple2' from the context (Bits a) bound by the type signature for pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:139:10-59 Possible fix: add (Num a) to the context of the type signature for pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a In the expression: addTuple2 x (shiftTuple2 tshift extended_key) In a pattern binding: (x0', x1') = addTuple2 x (shiftTuple2 tshift extended_key) In an equation for `pbox2': pbox2 extended_key r x = (x0', x1' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1') = addTuple2 x (shiftTuple2 tshift extended_key) System/Random/Random123/Threefry.hs:147:28: Could not deduce (Num a) arising from a use of `addTuple4' from the context (Bits a) bound by the type signature for pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a at System/Random/Random123/Threefry.hs:144:10-65 Possible fix: add (Num a) to the context of the type signature for pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a In the expression: addTuple4 x (shiftTuple4 tshift extended_key) In a pattern binding: (x0', x1', x2', x3') = addTuple4 x (shiftTuple4 tshift extended_key) In an equation for `pbox4': pbox4 extended_key r x = (x0', x1', x2', x3' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1', x2', x3') = addTuple4 x (shiftTuple4 tshift extended_key) System/Random/Random123/Threefry.hs:174:22: Could not deduce (Num a) arising from a use of `addTuple2' from the context (ThreefryWord a, Bits a) bound by the type signature for threefry2R :: (ThreefryWord a, Bits a) => Int -> Array2 a -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:(165,15)-(169,15) Possible fix: add (Num a) to the context of the type signature for threefry2R :: (ThreefryWord a, Bits a) => Int -> Array2 a -> Array2 a -> Array2 a In the expression: addTuple2 key ctr In an equation for `starting_x': starting_x = addTuple2 key ctr In an equation for `threefry2R': threefry2R rounds key ctr | (rounds >= 1) && (rounds <= 32) = apply (threefryRound pbox sbox2) rounds starting_x | otherwise = error "The number of rounds in Threefry-2 must be between 1 and 32" where starting_x = addTuple2 key ctr pbox = pbox2 (extendKey2 key) System/Random/Random123/Threefry.hs:188:22: Could not deduce (Num a) arising from a use of `addTuple4' from the context (ThreefryWord a, Bits a) bound by the type signature for threefry4R :: (ThreefryWord a, Bits a) => Int -> Array4 a -> Array4 a -> Array4 a at System/Random/Random123/Threefry.hs:(179,15)-(183,15) Possible fix: add (Num a) to the context of the type signature for threefry4R :: (ThreefryWord a, Bits a) => Int -> Array4 a -> Array4 a -> Array4 a In the expression: addTuple4 key ctr In an equation for `starting_x': starting_x = addTuple4 key ctr In an equation for `threefry4R': threefry4R rounds key ctr | (rounds >= 1) && (rounds <= 72) = apply (threefryRound pbox sbox4) rounds starting_x | otherwise = error "The number of rounds in Threefry-4 must be between 1 and 72" where starting_x = addTuple4 key ctr pbox = pbox4 (extendKey4 key) Failed to install Random123-0.1.1 cabal: Error: some packages failed to install: Random123-0.1.1 failed during the building phase. The exception was: ExitFailure 1
Test log
No test log was submitted for this report.