[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) interactive:5:16: Couldn't match

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

2012-10-04 Thread Ivan Lazar Miljenovic
On 4 October 2012 20:50, Janek S. fremenz...@poczta.onet.pl 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

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 Chaddaï Fouché
On Thu, Oct 4, 2012 at 1:58 PM, Janek S. fremenz...@poczta.onet.pl 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

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 packages

[Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Manuel M T Chakravarty
Most existing Haskell books and similar teaching material is aimed at programmers who are new to Haskell. This survey is to assess the community interest in teaching material covering advanced topics beyond the commonly taught introductory material.

Re: [Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Kim-Ee Yeoh
Something to consider is that it's not so much whether the material is basic, advanced, or intermediate; it's that the way it's being presented is boring and ineffective. Take the Head First Java book, which was deliberately engineered to overcome precisely this hitherto neglected aspect of

Re: [Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Stephen Tetley
On 4 October 2012 18:04, Kim-Ee Yeoh k...@atamo.com wrote: Something to consider is that it's not so much whether the material is basic, advanced, or intermediate; it's that the way it's being presented is boring and ineffective. I'd suggest there is enough range in the Haskell books now

Re: [Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Vo Minh Thu
2012/10/4 Stephen Tetley stephen.tet...@gmail.com: On 4 October 2012 18:04, Kim-Ee Yeoh k...@atamo.com wrote: Something to consider is that it's not so much whether the material is basic, advanced, or intermediate; it's that the way it's being presented is boring and ineffective. I'd suggest

Re: [Haskell-cafe] HaskellDB Convertible Exception: incompatible types

2012-10-04 Thread Andras Gyomrey
Hi, going deeper i found the following: http://hackage.haskell.org/packages/archive/haskelldb-hdbc/2.1.0/doc/html/src/Database-HaskellDB-HDBC.html#line-126 HaskellDB is converting from SqlTimestampT (no timezone defined) to CalendarTimeT (timezone required). This conversion tries then to be

Re: [Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Kristopher Micinski
On Thu, Oct 4, 2012 at 1:21 PM, Stephen Tetley stephen.tet...@gmail.com wrote: On 4 October 2012 18:04, Kim-Ee Yeoh k...@atamo.com wrote: Something to consider is that it's not so much whether the material is basic, advanced, or intermediate; it's that the way it's being presented is boring

[Haskell-cafe] ANNOUNCE: test-framework-golden-1.1

2012-10-04 Thread Roman Cheplyaka
I am glad to announce the first public release of test-framework-golden — a golden testing library. Hackage: http://hackage.haskell.org/package/test-framework-golden GitHub: https://github.com/feuerbach/test-framework-golden Golden tests are similar to unit tests (as implemented in HUnit), but

[Haskell-cafe] What is a functional approach to linear algebra routines? I see REPA warns that one must use fusion or risk slow routines.

2012-10-04 Thread KC
Apparently using STUarrays in an imperative fashion is fraught with peril (and the performance of molasses). Casey -- -- Regards, KC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] total Data.Map.! function

2012-10-04 Thread Heinrich Apfelmus
Henning Thielemann wrote: I wondered whether there is a brilliant typing technique that makes Data.Map.! a total function. That is, is it possible to give (!) a type, such that m!k expects a proof that the key k is actually present in the dictionary m? How can I provide the proof that k is

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. fremenz...@poczta.onet.pl

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-04 Thread Tim Docker
Does this new release included the sandbox functions discussed in this blog post: http://blog.johantibell.com/2012/08/you-can-soon-play-in-cabal-sandbox.html ? Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-04 Thread Johan Tibell
On Thu, Oct 4, 2012 at 7:11 PM, Tim Docker t...@dockerz.net wrote: Does this new release included the sandbox functions discussed in this blog post: http://blog.johantibell.com/2012/08/you-can-soon-play-in-cabal-sandbox.html ? It doesn't. The sandbox feature requires a little UI work still.

Re: [Haskell-cafe] Which advanced Haskell topics interest you

2012-10-04 Thread Manuel M T Chakravarty
Kristopher Micinski krismicin...@gmail.com: On Thu, Oct 4, 2012 at 1:21 PM, Stephen Tetley stephen.tet...@gmail.com wrote: As for an advanced book, maybe limiting the subject to one domain (concurrency / DSLs for graphics / pick a favourite ...) might make a better book than one targeting a

Re: [Haskell-cafe] ANNOUNCE: test-framework-golden-1.1

2012-10-04 Thread Alfredo Di Napoli
That's cool, thank you. A. Sent from my iPad On 04/ott/2012, at 23:55, Roman Cheplyaka r...@ro-che.info wrote: I am glad to announce the first public release of test-framework-golden — a golden testing library. Hackage: http://hackage.haskell.org/package/test-framework-golden GitHub:

Re: [Haskell-cafe] ANNOUNCE: test-framework-golden-1.1

2012-10-04 Thread Gianfranco Alongi
I'm a big fan of TDD and tend to approach all languages by learning how to TDD in them. As such, you mention that this is similar, could you please send some links about this? Cheers! On Thu, Oct 4, 2012 at 11:55 PM, Roman Cheplyaka r...@ro-che.info wrote: I am glad to announce the first