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