Re: [Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-21 Thread Atze Dijkstra
On 20 Oct, 2010, at 22:30 , Stephen Sinclair wrote: P.s., it would be wrong not to also mention the latest development in UHC, which might exactly let you write the JavaScript part of the app in Haskell:

RE: [Haskell-cafe] Are newtypes optimised and how much?

2010-10-21 Thread Simon Peyton-Jones
| Yes, you can freely use Foo/unFoo. There's no runtime penalty. (In the | jargon of GHC's intermediate language, Foo and unFoo translate to | *type-safe casts*, which generate no executable code. | | When does the conversion to type-safe casts occur relative to other | optimizations

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Malcolm Wallace
I just noticed that the recent revival of HWN is only being posted to haskell-cafe. I know there are lots of people who no longer subscribe to -cafe because of the amount of traffic, but who remain subscribed to the hask...@haskell.org list to receive announcements only, and who might

[Haskell-cafe] Announce: splot-0.1.1

2010-10-21 Thread Eugene Kirpichov
Hi cafe, I wrote yet another tiny visualization tool for my purposes and uploaded it on hackage. splot is a tool for visualizing the lifecycle of many concurrent multi-stage processes. For example, I'm using it to find the performance bottlenecks in a distributed application: processes are

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Ketil Malde
Malcolm Wallace malcolm.wall...@me.com writes: might value HWN as a quick-summary catchup of community news. Can you resume posting HWN there as well please? s/as well/instead/g I'm always getting two copies of everything in haskell@, since everything is cross-posted to -cafe. Are there

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Daniel Fischer
On Thursday 21 October 2010 11:38:37, Ketil Malde wrote: I'm always getting two copies of everything in haskell@, since everything is cross-posted to -cafe. Are there actually people subscribed to -cafe, but *not* to hask...@? And if so, why? I have long been subscribed to -cafe but not to

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Max Rabkin
On Thu, Oct 21, 2010 at 11:38, Ketil Malde ke...@malde.org wrote:  Are there actually people subscribed to -cafe, but *not* to hask...@? Yes. And if so, why? Because... I'm always getting two copies of everything in haskell@, since everything is cross-posted to -cafe. :) --Max

Re: [Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

2010-10-21 Thread Victor Nazarov
On Thu, Oct 21, 2010 at 6:35 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: On 21/10/2010, at 12:01 PM, Victor Nazarov wrote: I've been working on this for some month and I think now I'm ready to share the results. Given that this is alpha code, what's the performance like? I don't have

Re: [Haskell-cafe] data.time.zoneinfo

2010-10-21 Thread Yitzchak Gale
Anatoly Yakovenko wrote: I am trying to figure out how to use this library, seems like this should work Data.Time.ZoneInfo... Have you looked at my timezone-olson package? I wrote it as an alternative to Data.Time.ZoneInfo. I think it is more flexible, and better integrated with Data.Time.

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-21 Thread Yitzchak Gale
I wrote: 2. mailHeaders should have an Ord instance that compares case-insensitively, though the underlying Strings should remain Strings. I really meant Eq instance - which then affects the Ord instance, too. Sorry. wren ng thornton wrote: What is the intended use case? Since many uses of

[Haskell-cafe] Is it possible to easily connect Haskell to JavaScript/JavaFX in the browser and use a browser as a Windows GUI? :)

2010-10-21 Thread Dimitry Golubovsky
Hi, Atze Dijkstra wrote: [skip] but to provide a proper interface to XML/HTML DOM (see http://www.haskell.org/haskellwiki/Haskell_in_web_browser), or a GUI abstraction around it (perhaps a subset of wxHaskell?) will take more work time. I hope this can be done as part of a studentproject,

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Jean-Marie Gaillourdet
Hi, On 21.10.2010, at 11:38, Ketil Malde wrote: Malcolm Wallace malcolm.wall...@me.com writes: might value HWN as a quick-summary catchup of community news. Can you resume posting HWN there as well please? s/as well/instead/g +1 I'm always getting two copies of everything in

Re: [Haskell-cafe] Haskell Weekly News: Issue 155 - October 20, 2010

2010-10-21 Thread Ketil Malde
Daniel Fischer daniel.is.fisc...@web.de writes: I have long been subscribed to -cafe but not to hask...@. Regarding why, I wasn't interested in what haskell@ was supposed to be for, while I was interested in what -cafe is for. The Wiki documents these lists as: hask...@haskell.org

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-21 Thread Michael Snoyman
On Wed, Oct 20, 2010 at 4:51 PM, Yitzchak Gale g...@sefer.org wrote: Michael Snoyman wrote: [1] http://hackage.haskell.org/package/mime-mail Great news! This is an important package. It's obviously very preliminary, though. This is not trivial to get right - look at the long and colorful

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-21 Thread Andrew Coppin
On 21/10/2010 01:28 AM, Anton van Straaten wrote: Andrew Coppin wrote: I'd like to have a go at writing CGI in Haskell. ... Does anybody know of a solution that works on Windows? I've previously run Happstack on Windows. That was a couple of years ago, though, so I don't know whether its

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-21 Thread Michael Snoyman
In case anyway was worried, I *have* been following this thread, and purposely not sticking my nose in to see what people's opinions are. I've really appreciated the discussion; let me give my overall response to everything: It's good to remember that a user can always add whatever information

[Haskell-cafe] Haskellers design

2010-10-21 Thread Michael Snoyman
I've gotten two offers for designs for Haskellers. The one uses the Haskell color theme choices we seem to be standardizing on as a community, the other uses a more custom theme. There is a screenshot of the former[1] and a demo page for the latter[2]. So the questions are: * How important is

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-21 Thread Jeremy Shaw
On Thu, Oct 21, 2010 at 12:04 PM, Andrew Coppin andrewcop...@btinternet.com wrote: My understanding is that Happstack is a very large, powerful and complex framework for writing Haskell web applications. I was under the impression that you use it by statically linking the HTTP server and the

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-21 Thread Michael Snoyman
On Thu, Oct 21, 2010 at 8:00 PM, Jeremy Shaw jer...@n-heptane.com wrote: On Thu, Oct 21, 2010 at 12:04 PM, Andrew Coppin andrewcop...@btinternet.com wrote: My understanding is that Happstack is a very large, powerful and complex framework for writing Haskell web applications. I was under the

Re: [Haskell-cafe] Haskellers design

2010-10-21 Thread Christopher Done
On 21 October 2010 19:54, Michael Snoyman mich...@snoyman.com wrote: Please note that questions 1 and 2 may have different answers. Keep in mind when evaluating these themes, especially the first, that it is *not* in finalized form, just an basic idea of what could be. A third option that I

Re: [Haskell-cafe] Haskellers design

2010-10-21 Thread David Virebayre
2010/10/21 Michael Snoyman mich...@snoyman.com * How important is adhering to a standard look? Important yet it should not feel like it's impossible to try new things * Which theme is overall more visually appealing? 2nd * Which theme gives a more professional feel? 2nd David.

Re: [Haskell-cafe] Haskellers design

2010-10-21 Thread Gregory Collins
Christopher Done chrisd...@googlemail.com writes: I like the colour theme of the former and the layout of the latter. Precisely what I was going to say. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-21 Thread Jeremy Shaw
On Thu, Oct 21, 2010 at 12:16 PM, Michael Snoyman mich...@snoyman.com wrote: On this one you may call be biased, but I think keeping Happstack and Yesod on their own makes perfect sense. If I were an employer looking to hire someone to work on a project, I would be looking to see that they can

Re: [Haskell-cafe] Haskellers design

2010-10-21 Thread Nubis
Hi guys, I'm the author of that second design, although I'm not really a designer. I'll try a variation using colors that resemble the 'official' ones so you can choose which one you like better. The thing is the current proposal uses 4 indicative colors and a greyscale for the rest. Green for

Re: [Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

2010-10-21 Thread Christopher Done
On 21 October 2010 01:01, Victor Nazarov asviraspossi...@gmail.com wrote: I've been working on this for some month and I think now I'm ready to share the results. http://github.com/sviperll/ghcjs This is very cool, as a web developer I have a lot of interest in this. All GHC's extensions is a

[Haskell-cafe] Convert Either to Tree - Occurs check

2010-10-21 Thread André Batista Martins
hello, i want convert Either to a tree. Example: Either ( Either 1 2 ) ( Either 3 4) Branch ( Branch (Leafl 1) (Leafr2) ) ( Branch (Leafl 3) (Leafr4)) ) Code: data TreeE a b = Empty |Leafl a | Leafr b | Branch (TreeE a b ) (TreeE a b) deriving Show f3 (Right

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-21 Thread Michael Snoyman
OK, after reviewing the list again, here's some more that are on the chopping block, given the new outlook we've been establishing here. Speak up if you want it saved: Denotational design Programming using Arrows Transactional business applications development Categorical Programming On Thu, Oct

[Haskell-cafe] Regression test utility suggestions?

2010-10-21 Thread Peter Schmitz
I am seeking suggestions for a regression test utility or framework to use while developing in Haskell (in a MS Windows environment). I am developing a Haskell application that parses an input text file, and outputs some information about what was parsed. The application is currently in a GUI,

Re: [Haskell-cafe] Bug in HTTP (bad internal error handling)

2010-10-21 Thread Bit Connor
On Sat, Oct 16, 2010 at 10:29 AM, Claus Reinke claus.rei...@talk21.com wrote: After it catches this error, the function returns (line 376): return (fail (show e)) The fail is running in the Either monad (The Result type = Either). This calls the default Monad implementation of fail, which is

[Haskell-cafe] readProcess exception

2010-10-21 Thread Leskó Dániel
Hi everyone! I run into a problem with readProcessWithExitCode (from System.Process module). Basically what i want is to start an exe file, giving it some input on stdin and receiving the results on stdout. But id the stdin and out is bigger that 5000-7000 char (nondeterministically), i get

Re: [Haskell-cafe] Regression test utility suggestions?

2010-10-21 Thread Vo Minh Thu
2010/10/21 Peter Schmitz ps.hask...@gmail.com: I am seeking suggestions for a regression test utility or framework to use while developing in Haskell (in a MS Windows environment). [snip] Hi, Have a look at HUnit and, e.g. test-framework. http://hackage.haskell.org/package/HUnit

[Haskell-cafe] HELP

2010-10-21 Thread Yaadallah Khan
I am Studying for an exam, and i have just come accross the following 3 questions, i am not familiar with the functions, therefore i would appreciate any help. !! i have already created painting 2 3 all i need is the 3 functions, for the three different tasks as shown below. the functions are

Re: [Haskell-cafe] HELP

2010-10-21 Thread Brian Troutwine
I'm not sure what you're asking for; it looks like you have to implement the functions from the specifications. On Thu, Oct 21, 2010 at 6:11 PM, Yaadallah Khan yk...@hotmail.com wrote: I am Studying for an exam, and i have just come accross the following 3 questions, i am not familiar with the

[Haskell-cafe] playing around with network.curl - redub

2010-10-21 Thread Michael Litchard
My current problem is how to pass around the cookie jar. I need to gather cookies, while establishing a session. Could someone provide an example? I've messed about with CurlCookieFile and CurlCookieJar, to no avail. I'll provide my failed attempt if needed. I'm using https, if it makes a

Re: [Haskell-cafe] Convert Either to Tree - Occurs check

2010-10-21 Thread Dan Piponi
André Batista Martins asked:  i want convert  Either to a tree.  Example:   Either ( Either  1 2 ) ( Either 3 4) Branch ( Branch (Leafl 1)  (Leafr2) ) ( Branch (Leafl 3)  (Leafr4)) ) Before writing the function to convert your data structure, why not try writing

[Haskell-cafe] suspected problem with network.curl version 1.3.5

2010-10-21 Thread Michael Litchard
Here's my code, I'm pretty sure I am doing this right. The problem seems to be with method_POST. I tried to duplicate manually, but I'm not sure I used command line curl correctly. Take a look at the output below. import Network.Curl import System (getArgs) import Text.Regex.Posix -- |

[Haskell-cafe] [ANNOUNCE] text 0.10.0.0 - fast Unicode text handling

2010-10-21 Thread Bryan O'Sullivan
[Blog copy of the announcement herehttp://www.serpentine.com/blog/2010/10/22/text-0-10-0-0-is-here/ .] I just pushed it to bitbucket http://bitbucket.org/bos/text and githubhttp://github.com/bos/text, and you can install it from the text site on Hackagehttp://hackage.haskell.org/package/text in