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
Reply-To: The Haskell-Beginner
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 https://g
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
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 jo
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 -> Noth
> 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 de
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
Thanks
The cancelative monoid is the right class for rolling back transactions, by
the way.
2013/3/22 Mario Blažević
> The new package monoid-subclasses [1] exports a number of classes that
> sit between monoids and groups: ReductiveMonoid, CancellativeMonoid,
> GCDMonoid, MonoidNull, and
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 looki
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@
>
> 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
Haskell-Cafe@hask
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 comfortab
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 beli
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
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 o
15 matches
Mail list logo