Build #3 for ciphersaber2-0.1.1.1

[all reports]

Package ciphersaber2-0.1.1.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-11-29 22:23:20.869113 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies array-0.5.1.1, base-4.9.0.0, bytestring-0.10.8.1, array-0.5.1.1, base-4.9.0.0, bytestring-0.10.8.1, parseargs-0.2.0.7
Flags none

Build log

[view raw]

Resolving dependencies...
Configuring parseargs-0.2.0.7...
Building parseargs-0.2.0.7...
Installed parseargs-0.2.0.7
Configuring ciphersaber2-0.1.1.1...
Building ciphersaber2-0.1.1.1...
Failed to install ciphersaber2-0.1.1.1
Build log ( /home/builder/.cabal/logs/ciphersaber2-0.1.1.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-1276/ciphersaber2-0.1.1.1'
Configuring ciphersaber2-0.1.1.1...
Building ciphersaber2-0.1.1.1...
Preprocessing library ciphersaber2-0.1.1.1...
[1 of 1] Compiling Data.CipherSaber2 ( Data/CipherSaber2.hs, dist/build/Data/CipherSaber2.o )

Data/CipherSaber2.hs:54:11: error:
    • Non type-variable argument
        in the constraint: MArray (STUArray s) Word8 m
      (Use FlexibleContexts to permit this)
    • When checking the inferred type
        schedStep :: forall (m :: * -> *).
                     MArray (STUArray s) Word8 m =>
                     Word8 -> Word8 -> m Word8
      In the second argument of ‘($)’, namely
        ‘do { let nKey = ...;
              let key' = ...;
              s <- newListArray (0, 255) [0 .. 255] ::
                     ST s (STUArray s Word8 Word8);
              let schedStep j i = ...;
              .... }’
      In the second argument of ‘($)’, namely
        ‘runST
         $ do { let nKey = ...;
                let key' = ...;
                s <- newListArray (0, 255) [0 .. 255] ::
                       ST s (STUArray s Word8 Word8);
                let schedStep j i = ...;
                .... }’

Data/CipherSaber2.hs:65:11: error:
    • Non type-variable argument
        in the constraint: MArray (STUArray s) Word8 m
      (Use FlexibleContexts to permit this)
    • When checking the inferred type
        keystream :: forall (m :: * -> *) t.
                     (MArray (STUArray s) Word8 m, Num t, Eq t) =>
                     t -> Word8 -> Word8 -> m [Word8]
      In the second argument of ‘($)’, namely
        ‘do { let nKey = ...;
              let key' = ...;
              s <- newListArray (0, 255) [0 .. 255] ::
                     ST s (STUArray s Word8 Word8);
              let schedStep j i = ...;
              .... }’
      In the second argument of ‘($)’, namely
        ‘runST
         $ do { let nKey = ...;
                let key' = ...;
                s <- newListArray (0, 255) [0 .. 255] ::
                       ST s (STUArray s Word8 Word8);
                let schedStep j i = ...;
                .... }’
cabal: Leaving directory '/tmp/cabal-tmp-1276/ciphersaber2-0.1.1.1'
cabal: Error: some packages failed to install:
ciphersaber2-0.1.1.1 failed during the building phase. The exception was:
ExitFailure 1