Build #9 for SimpleAES-0.1

[all reports]

Package SimpleAES-0.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-30 21:45:32.549659 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0, bytestring-0.10.8.1, mwc-random-0.13.5.0
Flags none

Build log

[view raw]

Resolving dependencies...
Configuring primitive-0.6.1.0...
Building primitive-0.6.1.0...
Installed primitive-0.6.1.0
Configuring vector-0.11.0.0...
Building vector-0.11.0.0...
Installed vector-0.11.0.0
Configuring mwc-random-0.13.5.0...
Building mwc-random-0.13.5.0...
Installed mwc-random-0.13.5.0
Configuring SimpleAES-0.1...
Building SimpleAES-0.1...
Failed to install SimpleAES-0.1
Build log ( /home/builder/.cabal/logs/SimpleAES-0.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-882/SimpleAES-0.1'
Configuring SimpleAES-0.1...
Building SimpleAES-0.1...
Preprocessing library SimpleAES-0.1...
[1 of 2] Compiling Codec.Crypto.AES.IO ( dist/build/Codec/Crypto/AES/IO.hs, dist/build/Codec/Crypto/AES/IO.o )

src/Codec/Crypto/AES/IO.hsc:11:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()

src/Codec/Crypto/AES/IO.hsc:125:1: warning: [-Wunused-top-binds]
    Defined but not used: ‘aes_ctr_crypt’

src/Codec/Crypto/AES/IO.hsc:155:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        (either ‘peek’
                or
                ‘peekElemOff’
                or
                ‘peekByteOff’) and (either ‘poke’
                                           or
                                           ‘pokeElemOff’
                                           or
                                           ‘pokeByteOff’)
    • In the instance declaration for ‘Storable EncryptCtxStruct’

src/Codec/Crypto/AES/IO.hsc:160:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        (either ‘peek’
                or
                ‘peekElemOff’
                or
                ‘peekByteOff’) and (either ‘poke’
                                           or
                                           ‘pokeElemOff’
                                           or
                                           ‘pokeByteOff’)
    • In the instance declaration for ‘Storable DecryptCtxStruct’
[2 of 2] Compiling Codec.Crypto.SimpleAES ( src/Codec/Crypto/SimpleAES.hs, dist/build/Codec/Crypto/SimpleAES.o )

src/Codec/Crypto/SimpleAES.hs:17:11: error:
    • Ambiguous type variable ‘m0’ arising from a use of ‘withSystemRandom’
      prevents the constraint ‘(primitive-0.6.1.0:Control.Monad.Primitive.PrimBase
                                  m0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘m0’ should be.
      These potential instances exist:
        instance primitive-0.6.1.0:Control.Monad.Primitive.PrimBase (ST s)
          -- Defined in ‘primitive-0.6.1.0:Control.Monad.Primitive’
        instance primitive-0.6.1.0:Control.Monad.Primitive.PrimBase IO
          -- Defined in ‘primitive-0.6.1.0:Control.Monad.Primitive’
    • In the expression: withSystemRandom save
      In an equation for ‘newSeed’: newSeed = withSystemRandom save

src/Codec/Crypto/SimpleAES.hs:17:28: error:
    • Ambiguous type variable ‘m0’ arising from a use of ‘save’
      prevents the constraint ‘(primitive-0.6.1.0:Control.Monad.Primitive.PrimMonad
                                  m0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘m0’ should be.
      These potential instances exist:
        instance primitive-0.6.1.0:Control.Monad.Primitive.PrimMonad (ST s)
          -- Defined in ‘primitive-0.6.1.0:Control.Monad.Primitive’
        instance primitive-0.6.1.0:Control.Monad.Primitive.PrimMonad IO
          -- Defined in ‘primitive-0.6.1.0:Control.Monad.Primitive’
        ...plus 12 instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the first argument of ‘withSystemRandom’, namely ‘save’
      In the expression: withSystemRandom save
      In an equation for ‘newSeed’: newSeed = withSystemRandom save
cabal: Leaving directory '/tmp/cabal-tmp-882/SimpleAES-0.1'
cabal: Error: some packages failed to install:
SimpleAES-0.1 failed during the building phase. The exception was:
ExitFailure 1