Re: [Haskell-cafe] GSoC proposal: Data Visualization

2013-04-13 Thread Heinrich Apfelmus
Ernesto Rodriguez wrote: Dear Haskell Community, During the last months I used Haskell for machine learning, particularly in the field of Echo State Neural Networks. The main drawback I encountered is that its difficult to visualize and plot data in Haskell in spite the fact there are a couple

[Haskell-cafe] When - O'Reilly book on Parallel and Concurrent Haskell

2013-04-13 Thread amslonewolf
Are there updates on when Simon Marlow's O'Reilly book on Parallel and Concurrent Haskell is going to be released? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] case switch covering all possible constructor but still fails

2013-04-13 Thread Nathan Hüsken
Hey, I am trying to fix (or at least get my head around) this: https://github.com/valderman/haste-compiler/issues/27 Which is an issue of the haste haskell-javascript compiler. Doing so I encounter this problem which makes me think I am not understanding something fundamental here (and I

Re: [Haskell-cafe] GSoC proposal: Data Visualization

2013-04-13 Thread Ernesto Rodriguez
Hi Hienrich, It is indeed a big scope as you mentioned. Matlab has been working for years to get this functionality right. On the other hand, the project you linked is interesting. For me it would already be a huge advantage if I could edit and re-evaluate expressions interactively (in a

Re: [Haskell-cafe] case switch covering all possible constructor but still fails

2013-04-13 Thread Niklas Larsson
What I do not understand: The case switch covers all possibilities of AltCon. So how can this happen? There is a guard on the DataAlt case so all alternatives doesn't have to be covered. -- Niklas ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] case switch covering all possible constructor but still fails

2013-04-13 Thread Daniel Trstenjak
Hi Nathan, DataAlt c | Right tag - genDataConTag c - return $ Cond tag Are you sure, that genDataConTag always returns a 'Right'? If it returns a 'Left', than the pattern won't match. Greetings, Daniel ___ Haskell-Cafe mailing list

[Haskell-cafe] multivariate normal distribution in Haskell?

2013-04-13 Thread Bas de Haas
Dear List, I’m implementing a probabilistic model for recognising musical chords in Haskell. This model relies on a multivariate normal distribution. I’ve been searching the internet and mainly hackage for a Haskell library to do this for me, but so far I’ve been unsuccessful. What I’m

Re: [Haskell-cafe] ANNOUNCE: monoid-subclasses-0.1.1, incremental-parser-0.2.2, and SCC-0.8

2013-04-13 Thread Alberto G. Corona
Thanks The cancelative monoid is the right class for rolling back transactions, by the way. 2013/3/22 Mario Blažević blama...@acanac.net The new package monoid-subclasses [1] exports a number of classes that sit between monoids and groups: ReductiveMonoid, CancellativeMonoid, GCDMonoid,

[Haskell-cafe] NaN as Integer value

2013-04-13 Thread Алексей Егоров
Hello haskellers, is there a reason why Integer doesn't have 'NaN' as value? I think it would be very convenient to be able to handle (1 `div` 0) as regular NaN value and not as exception. Thanks.___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] NaN as Integer value

2013-04-13 Thread Franco
Hello haskellers,is there a reason why Integer doesn't have 'NaN' as value?I think it would be very convenient to be able to handle (1 `div` 0) as regular NaN value and not as exception.Thanks. I think because, if you need NaN like values, `Maybe Int` does the same job without tainting the

Re: [Haskell-cafe] NaN as Integer value

2013-04-13 Thread Daniel Díaz Casanueva
You can always use the Maybe type as a follows: intDiv :: Integer - Integer - Maybe Integer intDiv _ 0 = Nothing intDiv n m = Just (div n m) This allows you to pattern match results of divisions: example :: Integer - Integer - Maybe Integer example n m = case intDiv 4 n of Nothing - Nothing

Re: [Haskell-cafe] NaN as Integer value

2013-04-13 Thread Jerzy Karczmarczuk
Franco answers a question : Hello haskellers,is there a reason why Integer doesn't have 'NaN' as value?I think it would be very convenient to be able to handle (1 `div` 0) as regular NaN value and not as exception.Thanks. I think because, if you need NaN like values, `Maybe Int` does the same

Re: [Haskell-cafe] case switch covering all possible constructor but still fails

2013-04-13 Thread Nathan Hüsken
Oh, so obvious. That was it, thanks. On 04/13/2013 12:08 PM, Daniel Trstenjak wrote: Hi Nathan, DataAlt c | Right tag - genDataConTag c - return $ Cond tag Are you sure, that genDataConTag always returns a 'Right'? If it returns a 'Left', than the pattern won't match. Greetings, Daniel

Re: [Haskell-cafe] GSoC proposal: Data Visualization

2013-04-13 Thread Carter Schonwald
Heinrich, you hit the nail on the head. for an interactive plotting story to work well, we wind up needing to have better tools in the ecosystem on the gui / computational notebook side. on the other hand, similar work was done last summer, as heinrich mentions, in the form of ghc live

[Haskell-cafe] Fwd: [Haskell-beginners] Monad instances and type synonyms

2013-04-13 Thread Christopher Howard
I asked this question in Haskell-beginners, but I haven't heard anything yet, so I'm forwarding to Cafe. Original Message Subject: [Haskell-beginners] Monad instances and type synonyms Date: Sat, 13 Apr 2013 17:03:57 -0800 From: Christopher Howard