Build #7 for morfette-0.3.5

[all reports]

Package morfette-0.3.5
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-24 14:28:19.548529 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies QuickCheck-2.9.2, array-0.5.1.1, base-4.9.0.0, binary-0.8.3.0, bytestring-0.10.8.1, containers-0.5.7.1, directory-1.2.6.2, filepath-1.4.1.0, mtl-2.2.1, pretty-1.1.3.3, utf8-string-1.0.1.1
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring mtl-2.2.1...
Configuring primitive-0.6.2.0...
Building mtl-2.2.1...
Building primitive-0.6.2.0...
Installed mtl-2.2.1
Configuring random-1.1...
Building random-1.1...
Configuring utf8-string-1.0.1.1...
Installed primitive-0.6.2.0
Building utf8-string-1.0.1.1...
Installed random-1.1
Configuring tf-random-0.5...
Building tf-random-0.5...
Installed utf8-string-1.0.1.1
Installed tf-random-0.5
Configuring QuickCheck-2.9.2...
Building QuickCheck-2.9.2...
Installed QuickCheck-2.9.2
Configuring morfette-0.3.5...
Building morfette-0.3.5...
Failed to install morfette-0.3.5
Build log ( /home/builder/.cabal/logs/morfette-0.3.5.log ):
cabal: Entering directory '/tmp/cabal-tmp-10090/morfette-0.3.5'
Configuring morfette-0.3.5...
Building morfette-0.3.5...
Preprocessing executable 'morfette' for morfette-0.3.5...
[ 1 of 26] Compiling Paths_morfette   ( dist/build/autogen/Paths_morfette.hs, dist/build/morfette/morfette-tmp/Paths_morfette.o )
[ 2 of 26] Compiling GramLab.Utils    ( src/GramLab/Utils.hs, dist/build/morfette/morfette-tmp/GramLab/Utils.o )
[ 3 of 26] Compiling GramLab.Perceptron.Vector ( src/GramLab/Perceptron/Vector.hs, dist/build/morfette/morfette-tmp/GramLab/Perceptron/Vector.o )

src/GramLab/Perceptron/Vector.hs:53:41: error:
    • Could not deduce (Ix y) arising from a use of ‘!’
      from the context: Ix (y, i)
        bound by the type signature for:
                   dot :: Ix (y, i) =>
                          DenseVector (y, i) -> ([(i, Float)], y) -> Float
        at src/GramLab/Perceptron/Vector.hs:50:1-66
      Possible fix:
        add (Ix y) to the context of
          the type signature for:
            dot :: Ix (y, i) =>
                   DenseVector (y, i) -> ([(i, Float)], y) -> Float
    • In the first argument of ‘(*)’, namely ‘(w ! (y, i))’
      In the second argument of ‘(+)’, namely ‘(w ! (y, i)) * xi’
      In the first argument of ‘go’, namely ‘(s + (w ! (y, i)) * xi)’

src/GramLab/Perceptron/Vector.hs:71:16: error:
    • Could not deduce (Ix y) arising from a use of ‘bounds’
      from the context: Ix (y, i)
        bound by the type signature for:
                   unsafeDot :: Ix (y, i) =>
                                DenseVector (y, i) -> ([(i, Float)], y) -> Float
        at src/GramLab/Perceptron/Vector.hs:69:1-72
      Possible fix:
        add (Ix y) to the context of
          the type signature for:
            unsafeDot :: Ix (y, i) =>
                         DenseVector (y, i) -> ([(i, Float)], y) -> Float
    • In the expression: bounds w
      In an equation for ‘bs’: bs = bounds w
      In an equation for ‘unsafeDot’:
          unsafeDot w (x, !y)
            = go 0 x
            where
                bs = bounds w
                go !s [] = s
                go !s ((!i, !xi) : x)
                  = go (s + unsafeAt w (unsafeIndex bs (y, i)) * xi) x

src/GramLab/Perceptron/Vector.hs:73:40: error:
    • Could not deduce (Ix y) arising from a use of ‘unsafeAt’
      from the context: Ix (y, i)
        bound by the type signature for:
                   unsafeDot :: Ix (y, i) =>
                                DenseVector (y, i) -> ([(i, Float)], y) -> Float
        at src/GramLab/Perceptron/Vector.hs:69:1-72
      Possible fix:
        add (Ix y) to the context of
          the type signature for:
            unsafeDot :: Ix (y, i) =>
                         DenseVector (y, i) -> ([(i, Float)], y) -> Float
    • In the first argument of ‘(*)’, namely
        ‘unsafeAt w (unsafeIndex bs (y, i))’
      In the second argument of ‘(+)’, namely
        ‘unsafeAt w (unsafeIndex bs (y, i)) * xi’
      In the first argument of ‘go’, namely
        ‘(s + unsafeAt w (unsafeIndex bs (y, i)) * xi)’
cabal: Leaving directory '/tmp/cabal-tmp-10090/morfette-0.3.5'
cabal: Error: some packages failed to install:
morfette-0.3.5 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.