Re: [Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Michael Sloan
Hello! Perhaps package imports would do the trick? http://haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#package-imports Not exactly something you'd want to release in a module in a hackage package, though. -Michael On Oct 4, 2012 7:07 AM, "Janek S." wrote: > > so if it's wait

Re: [Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Janek S.
> so if it's waiting for a Vector from vector-0.9.1 it means Repa is > built against this version (which is not the latest on your computer > thus the problem). Yes, as I said the latest one is 0.10. Is there any way to sensibly manage this kind of dependencies (sensibly = without hidding package

Re: [Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Chaddaï Fouché
On Thu, Oct 4, 2012 at 1:58 PM, Janek S. wrote: > Thanks! > >> This makes it look like you've got two versions of vector installed, > This is true, I have vector-0.9.1 and vector-0.10, but >> with Repa built against the version that _isn't_ 0.9.1. No, no, Repa is build against 0.9.1 since vector-

Re: [Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Janek S.
Thanks! > This makes it look like you've got two versions of vector installed, This is true, I have vector-0.9.1 and vector-0.10, but > with Repa built against the version that _isn't_ 0.9.1. this, I think, is not exactly correct: [root@GLaDOS : /dane/download] ghc-pkg field repa depends depends:

Re: [Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Ivan Lazar Miljenovic
On 4 October 2012 20:50, Janek S. wrote: > Dear list, > > I'm trying to create unboxed REPA array from unboxed Vector, but I keep > getting this type error: > > ghci> :m + Data.Array.Repa > ghci> :m + Data.Array.Repa.Repr.Unboxed > ghci> :m + Data.Vector.Unboxed > ghci> fromUnboxed Z (Data.Vector

[Haskell-cafe] Creating Repa arrays from unboxed vectors

2012-10-04 Thread Janek S.
Dear list, I'm trying to create unboxed REPA array from unboxed Vector, but I keep getting this type error: ghci> :m + Data.Array.Repa ghci> :m + Data.Array.Repa.Repr.Unboxed ghci> :m + Data.Vector.Unboxed ghci> fromUnboxed Z (Data.Vector.Unboxed.singleton 1) :5:16: Couldn't match expected