Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-18 Thread dokondr
On Wed, Jan 18, 2012 at 10:47 AM, John Lenz l...@math.uic.edu wrote: I don't see a great need of developing something like GWT for haskell, since we already have good support for all sorts of existing tools that span more than just haskell, like extjs, yui, and jqueryui. Haskell makes my

Re: [Haskell-cafe] Monad-control rant

2012-01-18 Thread Mikhail Vorozhtsov
On 01/18/2012 01:52 AM, Brandon Allbery wrote: On Tue, Jan 17, 2012 at 06:29, Mikhail Vorozhtsov mikhail.vorozht...@gmail.com mailto: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

[Haskell-cafe] haskell tcp server

2012-01-18 Thread Alexander V Vershilov
Hello. I'm interested if there exists some library like warp but only for tcp. Or maybe some web page with skeleton for such server or with some variants, eg. concurent/single-threaded. I know that each service can have it's specific properties and realization, but there are many common things

Re: [Haskell-cafe] haskell tcp server

2012-01-18 Thread Nicolas Trangez
On Thu, 2012-01-19 at 13:12 +, Alexander V Vershilov wrote: Hello. I'm interested if there exists some library like warp but only for tcp. Or maybe some web page with skeleton for such server or with some variants, eg. concurent/single-threaded. I know that each service can have it's

Re: [Haskell-cafe] implementing a text editor swap file

2012-01-18 Thread Gracjan Polak
Erik de Castro Lopo mle+hs at mega-nerd.com writes: 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 . Well, this one: http://hackage.haskell.org/package/mmap works not only for Text but

Re: [Haskell-cafe] Monad-control rant

2012-01-18 Thread Mikhail Vorozhtsov
On 01/18/2012 02:45 AM, Edward Z. Yang wrote: Excerpts from Mikhail Vorozhtsov's message of Tue Jan 17 06:29:12 -0500 2012: The vehicle of implementation here is kind of important. If they are implemented as asynchronous exceptions, I can in fact still throw in this universe: I just attempt

Re: [Haskell-cafe] strict, lazy, non-strict, eager

2012-01-18 Thread Jon Fairbairn
(I’m somewhat dismayed that the error in my preliminary remark has overshadowed the point of my original message — which was about the distinction between lazy and non-strict. However…) David Barbour dmbarb...@gmail.com writes: Full beta-reduction is certainly not strict What, precisely, do you

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-18 Thread Johannes Waldmann
dokondr dokondr at gmail.com writes: It would be great if I could write Web client code in pure Haskell [...] not exactly Haskell, but you may want to have a look at OPA http://opalang.org/ the idea is that you write all of the application in one (statically typed, functional) language and

[Haskell-cafe] Lifting IO (IO a) - IO a to m (m a) - m a with monad-control

2012-01-18 Thread Edward Z. Yang
Hello folks, I was curious whether or not it is possible to lift an arbitrary IO (IO a) - IO a function to MonadBaseControl IO m = m (m a) - m a. That is, implement a function: liftJoin :: MonadBaseControl mb m = (mb (mb (StM m a)) - mb (StM m a)) - m (m a) - m a The difficulty seems to be

Re: [Haskell-cafe] Monad-control rant

2012-01-18 Thread Edward Z. Yang
Excerpts from Mikhail Vorozhtsov's message of Wed Jan 18 08:47:37 -0500 2012: Well, that's the kind of language we live in. The denotation of our language always permits for bottom values, and it's not a terribly far jump from there to undefined and error foo. I don't consider the

[Haskell-cafe] Encouraging performance with ghc 7.4

2012-01-18 Thread Eugene Kirpichov
Hi cafe, Just wanted to inform you that I've been benchmarking my compute-intensive stuff on ghc 7.0.4 vs 7.4.0, and 7.4.0 gave a large speedup - one program that took 2.9s on a particular input is now taking 2.2s. This result is repeatable. So I encourage people to try out GHC 7.4.0. Some stuff

Re: [Haskell-cafe] Encouraging performance with ghc 7.4

2012-01-18 Thread Eugene Kirpichov
I got even more encouraging results on another input - 5 vs 7 seconds: === GHC 7.4.0 == jkff@jkff-laptop ~/projects/logs/... $ tplot -if lat.trace -dk 'within[.] duration quantile 10 0.25,0.5,0.75,0.9,0.95' -o lat3.png +RTS -s 2,809,230,872 bytes allocated in the heap

[Haskell-cafe] PhD program at Portland State accepting applications for Fall 2012

2012-01-18 Thread Nathan Collins
Hi, Portland State University has a lot going on in functional programming. The Fall 2012 PhD program application deadline is March 1 for US students and February 1 for international students: http://cs.pdx.edu/programs/admissions FP related work at Portland: - Tim Sheard is working on the

Re: [Haskell-cafe] Monad-control rant

2012-01-18 Thread Brandon Allbery
On Wed, Jan 18, 2012 at 03:47, Mikhail Vorozhtsov mikhail.vorozht...@gmail.com wrote: On 01/18/2012 01:52 AM, Brandon Allbery wrote: On Tue, Jan 17, 2012 at 06:29, Mikhail Vorozhtsov mikhail.vorozht...@gmail.com mailto:mikhail.vorozhtsov@**gmail.commikhail.vorozht...@gmail.com wrote:

[Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread Henning Thielemann
On Wed, 18 Jan 2012, Nathan Collins wrote: - Portland is a very popular US city, known for beer, bikes, music, and street food: http://en.wikipedia.org/wiki/Portland_Oregon (wikipedia is blacked out today) Maybe it is only a JavaScript trick. In Firefox (with JavaScript) I see the complete

Re: [Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread Brandon Allbery
On Wed, Jan 18, 2012 at 12:37, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 18 Jan 2012, Nathan Collins wrote: - Portland is a very popular US city, known for beer, bikes, music, and street food:

Re: [Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread MigMit
On 18 Jan 2012, at 21:37, Henning Thielemann wrote: On Wed, 18 Jan 2012, Nathan Collins wrote: - Portland is a very popular US city, known for beer, bikes, music, and street food: http://en.wikipedia.org/wiki/Portland_Oregon (wikipedia is blacked out today) Maybe it is only a

Re: [Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread Andrew Butterfield
Just add ?banner=none to the url if you really have to read the page On 18 Jan 2012, at 17:37, Henning Thielemann wrote: On Wed, 18 Jan 2012, Nathan Collins wrote: - Portland is a very popular US city, known for beer, bikes, music, and street food:

Re: [Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread Hans Aberg
On 18 Jan 2012, at 18:49, Andrew Butterfield wrote: Just add ?banner=none to the url if you really have to read the page Or stop the loading before the banner comes up. Hans On 18 Jan 2012, at 17:37, Henning Thielemann wrote: On Wed, 18 Jan 2012, Nathan Collins wrote: - Portland is

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Henning Thielemann
On Wed, 18 Jan 2012, Andrew Butterfield wrote: Just add ?banner=none to the url if you really have to read the page Maybe the intention was to demonstrate that censorship (in this case self-censorship) is mostly a problem for average users but not for advanced users.

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Brandon Allbery
On Wed, Jan 18, 2012 at 13:11, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 18 Jan 2012, Andrew Butterfield wrote: Just add ?banner=none to the url if you really have to read the page Maybe the intention was to demonstrate that censorship (in this case self-censorship)

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread John Meacham
Not to mention ebay, craigslist, etc.. http://www.techdirt.com/articles/20111005/10082416208/monster-cable-claims-ebay-craigslist-costco-sears-are-rogue-sites.shtml when there is no burden of proof for someone to take down a site then things get very complicated. for instance this package could

Re: [Haskell-cafe] black Wikipedia (Was: PhD program at Portland State accepting applications)

2012-01-18 Thread Tom Murphy
On 1/18/12, MigMit miguelim...@yandex.ru wrote: [..] (it really is a JavaScript trick). In the interest of Wikipedia-style fact-citation, here's a quote from Wikipedia: During the blackout, Wikipedia is accessible on mobile devices and smart phones. You can also view Wikipedia normally by

[Haskell-cafe] Error in converting List of Lists into PArray ( Parray a )

2012-01-18 Thread mukesh tiwari
Hello all I am trying to convert List of Lists ( [[(Int , Double )]] ) into PArray ( PArray ( Int , Double )) but getting run time error. This code works fine and print list of PArray ( Int , Double ) but when i put print $ P.fromList ( map P.fromList c ) then i am getting runtime error. It says

[Haskell-cafe] Pattern-matching substitution for haskell-src-exts?

2012-01-18 Thread Conal Elliott
Has anyone implemented pattern-matching substitution for haskell-src-exts? - Conal ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Hans Aberg
On 18 Jan 2012, at 19:32, John Meacham wrote: Not to mention ebay, craigslist, etc.. http://www.techdirt.com/articles/20111005/10082416208/monster-cable-claims-ebay-craigslist-costco-sears-are-rogue-sites.shtml when there is no burden of proof for someone to take down a site then things

Re: [Haskell-cafe] Pattern-matching substitution for haskell-src-exts?

2012-01-18 Thread Gwern Branwen
On Wed, Jan 18, 2012 at 3:05 PM, Conal Elliott co...@conal.net wrote: Has anyone implemented pattern-matching substitution for haskell-src-exts?  - Conal I don't know what exactly you are looking for, but I remember banging together a function-name search script using haskell-src-exts and

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-18 Thread Dag Odenhall
On Tue, 2012-01-17 at 22:05 +0300, dokondr wrote: 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.

[Haskell-cafe] REMINDER: Hac Boston from January 20-22 at MIT

2012-01-18 Thread Edward Z. Yang
I'd like to remind everyone that Hac Boston, a Haskell hackathon is being held January 20-22, 2012 at MIT (rooms 4-159 and 4-261) in Cambridge, MA. The hackathon will officially kick off at 2:30 Friday afternoon, and go until 5pm on Sunday with the occasional break for sleep. Everyone is welcome

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Brandon Allbery
On Wed, Jan 18, 2012 at 15:20, Hans Aberg haber...@telia.com wrote: There is the Beastie Boys case, where the judge decided copyright protects what is creatively unique. But such judgments are rare, sadly. And for every Beastie Boys case there's at least one The Verve case. -- brandon s

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread David Thomas
My understanding is that blocking/redirection is to be done at the DNS level. In which case, there *is* a ?banner hack of sorts - get the IP by some other means. Which is not to say we should be significantly less concerned. On Wed, Jan 18, 2012 at 10:17 AM, Brandon Allbery allber...@gmail.com

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Brandon Allbery
On Wed, Jan 18, 2012 at 17:15, David Thomas davidleotho...@gmail.comwrote: My understanding is that blocking/redirection is to be done at the DNS level. In which case, there *is* a ?banner hack of sorts - get the IP by some other means. Sadly name-based virtual hosts require a bit more work

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread David Thomas
Granted, but nothing a technical user can't handle, which was the earlier question. On Wed, Jan 18, 2012 at 2:18 PM, Brandon Allbery allber...@gmail.com wrote: On Wed, Jan 18, 2012 at 17:15, David Thomas davidleotho...@gmail.com wrote: My understanding is that blocking/redirection is to be

Re: [Haskell-cafe] Pattern-matching substitution for haskell-src-exts?

2012-01-18 Thread Joachim Breitner
Hi, Am Mittwoch, den 18.01.2012, 12:05 -0800 schrieb Conal Elliott: Has anyone implemented pattern-matching substitution for haskell-src-exts? - Conal without checking the code, I believe that hlint does exactly that; it takes rules (given as Haskell code), matches them as patterns against

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Hans Aberg
On 18 Jan 2012, at 23:11, Brandon Allbery wrote: There is the Beastie Boys case, where the judge decided copyright protects what is creatively unique. But such judgments are rare, sadly. And for every Beastie Boys case there's at least one The Verve case. I did not know that. But it was

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread John Meacham
And such a thing can take months or years for the courts to figure out, and unless your free site has a lawyer to fight for your side, under SOPA/PIPA you can be down the entire time with little recourse. For anyone hosting content lke hackage, github, etc. when you have thousands of packages,

Re: [Haskell-cafe] Error in converting List of Lists into PArray ( Parray a )

2012-01-18 Thread Atsuro Hoshino
Hi Mukesh, Below is a naive implementation of converting `[[(Int,Double)]]' to `PArray (PArray (Int, Double))' . There's no instance for `PA [a]', I've explicitly separated the inner and outer conversion. Though, when reading data from a file and converting, it might be better to use `hGet' in:

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Hans Aberg
Actually, it is a battle between the Hollywood and Silicon Valley industries. Hans On 19 Jan 2012, at 00:11, John Meacham wrote: And such a thing can take months or years for the courts to figure out, and unless your free site has a lawyer to fight for your side, under SOPA/PIPA you can be

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread John Meacham
However the fallout is likely to destroy both open source and resale on the internet. For instance, the existence of this is enough to get hackage a takedown under SOPA. http://hackage.haskell.org/package/conjure now, you might say we can just move hackage out of the US, but then any site that

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Austin Seipp
Aside from being a horrible oversimplification of the matter (because it's *never* that simple - Wikipedia is not in this movement for commercial interest or the side of SV/HW, but because it opposes the censoring of the internet; neither are people like Dan Kaminsky, who are also opposing from

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread John Lask
This bill cannot be fixed; it must be killed. - The EFF yes the act is pernicious, and may cause the wholesale relocation of content out of the US, to friendlier places like China, perhaps! ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Erik de Castro Lopo
Michael Snoyman wrote: However, WAI and Warp are mostly ready now, just needing a bit more testing. If people want to give me some feedback on the readiness of them, and would like them released earlier, I'm definitely flexible. Meanwhile: yes, the Github version is conduit-based.

[Haskell-cafe] Haskell Weekly News: Issue 211

2012-01-18 Thread Daniel Santa Cruz
Welcome to issue 211 of the HWN, a newsletter covering developments in the Haskell community. This release covers top stories found around the net between January 01 to 14, 2012. This is going to be a shorted version, as I have been out of time. I did not want to let more time go by without a

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Michael Snoyman
On Thu, Jan 19, 2012 at 5:22 AM, Erik de Castro Lopo mle...@mega-nerd.com wrote: Michael Snoyman wrote: However, WAI and Warp are mostly ready now, just needing a bit more testing. If people want to give me some feedback on the readiness of them, and would like them released earlier, I'm

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Erik de Castro Lopo
Michael Snoyman wrote: We can still have a conduit-based version of WAI and Warp, even if an underlying package uses enumerator. The enumerator usage from asn1-data doesn't leak into WAI or Warp at all[1]. We could ask Vincent to consider moving over to attoparsec-conduit instead, but I

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Vincent Hanquez
On 01/19/2012 03:22 AM, Erik de Castro Lopo wrote: Michael Snoyman wrote: However, WAI and Warp are mostly ready now, just needing a bit more testing. If people want to give me some feedback on the readiness of them, and would like them released earlier, I'm definitely flexible.