mikeizbicki / HLearn

Homomorphic machine learning
Other
1.63k stars 138 forks source link

Not in scope: type constructor or class Unbox' #1

Closed mruegenberg closed 11 years ago

mruegenberg commented 11 years ago

Installing HLearn-distributions from the repository version, I get an error:

$ cabal build
Building HLearn-distributions-0.0.1...
Preprocessing library HLearn-distributions-0.0.1...
[1 of 4] Compiling HLearn.Models.Distributions.Common ( src/HLearn/Models/Distributions/Common.hs, dist/build/HLearn/Models/Distributions/Common.o )
[2 of 4] Compiling HLearn.Models.Distributions.Categorical ( src/HLearn/Models/Distributions/Categorical.hs, dist/build/HLearn/Models/Distributions/Categorical.o )
[3 of 4] Compiling HLearn.Models.Distributions.Gaussian ( src/HLearn/Models/Distributions/Gaussian.hs, dist/build/HLearn/Models/Distributions/Gaussian.o )

src/HLearn/Models/Distributions/Gaussian.hs:59:33:
    Not in scope: type constructor or class Unbox'
    Perhaps you meant `U.Unbox' (imported from Data.Vector.Unboxed)

This is on GHC 7.4.2.

mikeizbicki commented 11 years ago

Whoops! The version on hackage was ahead of the version on git here. I'm pretty bad at committing and pushing the commits up here.

Anyhoo, I've pushed the latest commits, so if you cabal install from hackage or use the version on git now it should be the same thing and it should work fine.

mruegenberg commented 11 years ago

It still fails, but, interestingly, with an empty error message. Maybe a GHC bug?

$ cabal install HLearn-distributions
Resolving dependencies...
Configuring HLearn-distributions-0.0.1.3...
Building HLearn-distributions-0.0.1.3...
Preprocessing library HLearn-distributions-0.0.1.3...
[1 of 4] Compiling HLearn.Models.Distributions.Common ( src/HLearn/Models/Distributions/Common.hs, dist/build/HLearn/Models/Distributions/Common.o )
[2 of 4] Compiling HLearn.Models.Distributions.Categorical ( src/HLearn/Models/Distributions/Categorical.hs, dist/build/HLearn/Models/Distributions/Categorical.o )
[3 of 4] Compiling HLearn.Models.Distributions.Gaussian ( src/HLearn/Models/Distributions/Gaussian.lhs, dist/build/HLearn/Models/Distributions/Gaussian.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.0 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package containers-0.5.2.0 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package primitive-0.5.0.1 ... linking ... done.
Loading package vector-0.10.0.1 ... linking ... done.
Loading package vector-th-unbox-0.2.0.1 ... linking ... done.
Loading package erf-2.0.0.0 ... linking ... done.
Loading package math-functions-0.1.1.2 ... linking ... done.
Loading package HUnit-1.2.5.1 ... linking ... done.
Loading package abstract-deque-0.1.6 ... linking ... done.
Loading package abstract-par-0.3.1 ... linking ... done.
Loading package bytestring-0.9.2.1 ... linking ... done.
Loading package cereal-0.3.5.2 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package old-locale-1.0.0.4 ... linking ... done.
Loading package time-1.4 ... linking ... done.
Loading package random-1.0.1.1 ... linking ... done.
Loading package monad-par-extras-0.3.2 ... linking ... done.
Loading package mwc-random-0.12.0.1 ... linking ... done.
Loading package parallel-3.2.0.3 ... linking ... done.
Loading package monad-par-0.3 ... linking ... done.
Loading package vector-algorithms-0.5.4.2 ... linking ... done.
Loading package statistics-0.10.2.0 ... linking ... done.
Loading package normaldistribution-1.1.0.3 ... linking ... done.
Loading package logfloat-0.12.1 ... linking ... done.
Loading package list-extras-0.4.1.1 ... linking ... done.
Loading package QuickCheck-2.5.1 ... linking ... done.
Loading package MonadRandom-0.1.8 ... linking ... done.
Loading package ConstraintKinds-0.0.1.2 ... linking ... done.
Loading package binary-0.6.4.0 ... linking ... done.
Loading package text-0.11.2.3 ... linking ... done.
Loading package hashable-1.1.2.5 ... linking ... done.
Loading package semigroups-0.8.4.1 ... linking ... done.
Loading package HLearn-algebra-0.0.1 ... linking ... done.

src/HLearn/Models/Distributions/Gaussian.lhs:191:1:Failed to install HLearn-distributions-0.0.1.3
cabal: Error: some packages failed to install:
HLearn-distributions-0.0.1.3 failed during the building phase. The exception
was:
ExitFailure 11
mikeizbicki commented 11 years ago

Weird. I'm on ghc 7.6.1 and it works fine.