2012/1/16 Yin Wang yinwa...@gmail.com:
The typical example would be
instance Eq a = Eq [a] where
[] == [] = True
(a : as) == (b : bs) = a == b as == bs
_ == _ = False
It can handle this case, although it doesn't handle it as a parametric
instance. I suspect that we don't need the
hey Haskell I didn't believe this at all until I started
http://www.news13wise.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
This is an interesting problem, I think I might incorporate parts of it
into the next revision of my Concurrent Haskell tutorial.
It sounds like you're getting overwhelmed by several different problems,
and dealing with them separately would probably help. e.g. you want
some infrastructure
Hi all,
I hope to use Haskell for graphics (charts) programming in Web client.
My current implementation in brief:
Server side, Haskell modules:
1) collecting various statistics from Twitter
2) generating text data for Gnuplot (http://www.gnuplot.info/)
3) Gnuplot creates png files with charts
On Tue, Jan 17, 2012 at 4:19 PM, dokondr doko...@gmail.com wrote:
Hi all,
I hope to use Haskell for graphics (charts) programming in Web client.
My current implementation in brief:
Server side, Haskell modules:
1) collecting various statistics from Twitter
2) generating text data for
On 01/17/2012 03:00 AM, Edward Z. Yang wrote:
[snip]
I don't think it makes too much sense have thing pick off a menu of
Abort/Recover/Finally from a semantics perspective:
It's easy to imagine monads that have an instance of one of the classes but
not of the others
I'd like to see some
Hi,
I'm fixing a build error in a package that depends on the RTS API, which
changed in 7.4, using #if __GLASGOW_HASKELL__ = 740.
However, build log shows that __GLASGOW_HASKELL__ is still 704, not 740 as
I'd expect.
Is this a bug?
--
Eugene Kirpichov
Principal Engineer, Mirantis Inc.
My bad, it *should* really be 704.
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#c-pre-processor
On Tue, Jan 17, 2012 at 3:35 PM, Eugene Kirpichov ekirpic...@gmail.comwrote:
Hi,
I'm fixing a build error in a package that depends on the RTS API, which
changed in
On Tue, 2012-01-17 at 15:35 +0400, Eugene Kirpichov wrote:
Hi,
I'm fixing a build error in a package that depends on the RTS API, which
changed in 7.4, using #if __GLASGOW_HASKELL__ = 740.
However, build log shows that __GLASGOW_HASKELL__ is still 704, not 740 as
I'd expect.
Is this a
Dear List,
I am trying to parallelize some number of codes with
using Haskell's original and second generation strategies
in order to be able to compare them.
As far as I understood, in original strategies, ROOT
garbage collection mechanism is used which does
not allow any spark to be pruned.
Hi all,
Thanks to Felipe for catching this issue[1]. Both http-enumerator and
http-conduit will not properly reject invalid certificates. I've
released updated versions of both packages:
http-enumerator-0.7.2.4
http-conduit-1.1.2.2
All users are recommended to upgrade.
Michael
[1]
On Tue, Jan 17, 2012 at 3:07 AM, C K Kashyap ckkash...@gmail.com wrote:
Perhaps HTML5's canvas element would meet your requirement. There a few JS
chart implementation for HTML5 floating on the internet.
The Google Charting API *might* be sufficient:
http://code.google.com/apis/chart/
On Tue, Jan 17, 2012 at 06:29, Mikhail Vorozhtsov
mikhail.vorozht...@gmail.com wrote:
I wouldn't be too optimistic about convincing GHC HQ. Even making
Applicative a superclass of Monad can make Haskell98 nazis come after you
in ninja suits.
What?! The only significant complaint I've seen
On Tue, Jan 17, 2012 at 6:42 PM, John Lenz l...@math.uic.edu wrote:
HTML5 Canvas is great for charts. If you go this route you might as well
use a library which draws charts for you instead of writing all this code
yourself.
Personally, I use extjs version 4 which has some amazing charts,
I'd say use of asynchronous exceptions should be a last resort. Developers
should be encouraged to explicitly model any event notification system they
use.
Regards,
Dave
On Tue, Jan 17, 2012 at 1:42 AM, Simon Marlow marlo...@gmail.com wrote:
This is an interesting problem, I think I might
I've seen a book:
The Practice Of Monadic Interpretation Dan Popa Nov. 2008
Or
Practical Monadic Interpretation Dan Popa
Which seem that they might be the same book?
As reported on Haskell Wiki/books as published in 2008, but Don't find it
available anywhere under either title.
Any pointers
Hi Michael,
The current versions of wai and warp:
http://hackage.haskell.org/package/wai
http://hackage.haskell.org/package/warp
still seem to be the versions that use enumerator.
Any idea when the Conduit versions might show up on Hackage?
Until then, should I be grabbing these
I'm writing a gtk2hs-based text editor, and would like to implement
continuous (swap-file based) autosave the way vim and emacs do it. Any
suggestions for how to implement this in a cross-platform manner?
Also, is there a library that returns standard config file locations
on a per-platform
http://hackage.haskell.org/package/bytestring-mmap
On 17/01/2012, Martin DeMello martindeme...@gmail.com wrote:
I'm writing a gtk2hs-based text editor, and would like to implement
continuous (swap-file based) autosave the way vim and emacs do it. Any
suggestions for how to implement this in a
Matthew Farkas-Dyck wrote:
http://hackage.haskell.org/package/bytestring-mmap
Since he's editing text, its a pity there isn't a text-mmap
package :-).
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
Says posix only. But googling for it brought up System.IO.MMap, which
does seem to be cross-platform.
martin
On Tue, Jan 17, 2012 at 5:46 PM, Matthew Farkas-Dyck
strake...@gmail.com wrote:
http://hackage.haskell.org/package/bytestring-mmap
On 17/01/2012, Martin DeMello
On 17/01/2012, Erik de Castro Lopo mle...@mega-nerd.com wrote:
Matthew Farkas-Dyck wrote:
http://hackage.haskell.org/package/bytestring-mmap
Since he's editing text, its a pity there isn't a text-mmap
package :-).
Yeah, I had the same thought.
Erik
--
On Tue, Jan 17, 2012 at 5:49 PM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
Matthew Farkas-Dyck wrote:
http://hackage.haskell.org/package/bytestring-mmap
Since he's editing text, its a pity there isn't a text-mmap
package :-).
Further question - my internal data representation is a
Martin DeMello wrote:
Further question - my internal data representation is a vector of
strings (it's a line-based editor).
String or ByteString or Text?
If its either of the first two, I think you should definitely look at
Text.
Is there a more efficient strategy
to keep an mmap buffer in
On Tue, Jan 17, 2012 at 6:24 PM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
Martin DeMello wrote:
Further question - my internal data representation is a vector of
strings (it's a line-based editor).
String or ByteString or Text?
If its either of the first two, I think you should
Martin DeMello wrote:
Just plain String, mostly because it's what Gtk.Entry works with. I'll
take a look at Text.
Ah, maybe not. If your output representation *has* to be String its
probably not worth using Text as an internal representation.
I suspect that Gtk should really be updated to
On Tue, Jan 17, 2012 at 3:20 PM, David Barbour dmbarb...@gmail.com wrote:
I'd say use of asynchronous exceptions should be a last resort. ...
I agree. However, network libraries in Haskell (e.g. Handle,
Network.TLS) generally don't provide the primitives needed to do that
on the receiving end.
On Wed, Jan 18, 2012 at 2:22 AM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
Hi Michael,
The current versions of wai and warp:
http://hackage.haskell.org/package/wai
http://hackage.haskell.org/package/warp
still seem to be the versions that use enumerator.
Any idea when the
I uploaded a package that creates an STM layer over a network connection:
http://hackage.haskell.org/package/stm-channelize
I haven't used it in anger yet, but I hope it's a step in the right
direction. I included a sample chat client and server. The client is
pretty cute:
main =
29 matches
Mail list logo