RE: [Haskell-cafe] Somewhat random history question

2007-11-12 Thread Simon Peyton-Jones
| It's interesting that the article completely fails to mention hbc | which I know they used during the GHC bootstrap. Oh well. :) | | On Nov 11, 2007 2:41 PM, Richard Kelsall [EMAIL PROTECTED] wrote: | Andrew Coppin wrote: | ...if GHC is written in Haskell, how the heck did they compile GHC

Re: [Haskell-cafe] Upgrading X11

2007-11-12 Thread jim burton
On Sun, 2007-11-11 at 12:44 -0500, Brent Yorgey wrote: I think you need to run autoconf autoheader (or autoreconf) first, before running Setup configure? I could be confused, but see if that helps. If that's what the problem is, the documentation definitely needs updating. -Brent

Re: [Haskell-cafe] Somewhat random history question - chicken and egg

2007-11-12 Thread Tony Finch
On Sun, 11 Nov 2007, [EMAIL PROTECTED] wrote: To be a true COBOL replacement, I think that one very important feature is that it is link-compatible with existing COBOL code. You're never going to be able to replace a 6MLOC COBOL monster in any manner other than piecemeal. AFAIK people are

[Haskell-cafe] Re: [Haskell] GHC6.8.1 can not compile the simple example

2007-11-12 Thread Neil Mitchell
Hi David, In future, please post emails to haskell-cafe@, the haskell@ list is for annoucements. The correct command line is: ghc --make c.hs Thanks Neil On Nov 12, 2007 1:11 PM, david yu [EMAIL PROTECTED] wrote: Link error is: [EMAIL PROTECTED] test]$ ghc c.hs c.o: In function

[Haskell-cafe] Haskell and html input elements

2007-11-12 Thread PR Stanley
Hi back again! How easy/hard is it to control a haskell program through a web browser? Cheers Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell and html input elements

2007-11-12 Thread Aaron Tomb
On Nov 12, 2007, at 8:38 AM, PR Stanley wrote: Hi back again! How easy/hard is it to control a haskell program through a web browser? Hi, It depends on exactly how you want to control it, but at least some control is fairly easy. If you simply want to start a batch Haskell program,

Re: [Haskell-cafe] Haskell and html input elements

2007-11-12 Thread Neil Mitchell
Hi If you simply want to start a batch Haskell program, and see its output as HTML in a browser, you can use the cgi [1] or fastcgi [2] libraries listed on Hackage. This is the approach that Hoogle takes, and turned out to be very easy. The code is all available, so you can start from that.

[Haskell-cafe] Re: some links broken in 6.8.1 documentation

2007-11-12 Thread Daniil Elovkov
Hello Ian 2007/11/10, Ian Lynagh [EMAIL PROTECTED]: Hi Daniil, On Sun, Nov 04, 2007 at 03:49:54PM +0300, Daniil Elovkov wrote: A quick look at the 6.8.1 user's guide reveals some broken links: 1) Obtaining code coverage, pointing to

Re: [Haskell-cafe] Re: some links broken in 6.8.1 documentation

2007-11-12 Thread Bulat Ziganshin
Hello Daniil, Monday, November 12, 2007, 7:56:23 PM, you wrote: And, if a package is updated between two ghc releases, will the extralibs tarball be updated (and precompiled binary ghc packages, for that matter) ? i think it will be bad idea. instead, anyone who need to have latest package,

[Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Galchin Vasili
Hello, Using http://www.indeed.com with the search phrase Haskell functional, I found several Haskell positions inclusing Quantitative Functional Programmer (Analyst -

Re: [Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Don Stewart
vigalchin: I am looking for (objective.. i.e. not juts FPL cheerleading) opinions as to why Wall Street ( [3]http://www.janestcapital.com/) and banking are now using OCaml and Haskell. I really want to understand what industrial markets are adopting FPLs and why in order to help

Re: [Haskell-cafe] Somewhat random history question

2007-11-12 Thread Lennart Augustsson
No worries. I read the History of Haskell paper twice, but not the final version, I guess. As far as I remember you started the bootstrapping with the ghc built on the LML compiler. But as hbc became available it was soon more reliable and produced better code, so you switched to that until the

[Haskell-cafe] Interesting effect of upgrading GHC

2007-11-12 Thread Andrew Coppin
Hi guys. I just removed GHC 6.6.1 and installed 6.8.1, and I noticed something rather unexpected. I recompiled an existing program (with -O2), and instead of taking 30 seconds to compile, it took roughly 2 seconds. That's a really serious speedup! o_O Anybody have any idea what might have

Re: [Haskell-cafe] Interesting effect of upgrading GHC

2007-11-12 Thread Neil Mitchell
Hi I just removed GHC 6.6.1 and installed 6.8.1, and I noticed something rather unexpected. I recompiled an existing program (with -O2), and instead of taking 30 seconds to compile, it took roughly 2 seconds. In previous releases, certain constructs took O(n^2) time to compile. One that was a

Re: [Haskell-cafe] Interesting effect of upgrading GHC

2007-11-12 Thread Roel van Dijk
Not sure if this is the case but if you don't delete the old object files and executable GHC may think that its job is already done and give up early. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: How to do this in Haskell

2007-11-12 Thread Joe Buehler
Chris Smith wrote: Right, which is why I'm trying to avoid reinventing it. Writing a new HTML editor is not even a consideration. I'm looking at the effort to integrate the Mozilla editor component, and wondering if there are other components that could be used instead in a Gtk2Hs

Re: [Haskell-cafe] Weird ghci behaviour?

2007-11-12 Thread Dan Piponi
Several months late I now have a simple test case for what I think is either a GHC bug or a misexpectation on my part. This is with GHC 6.8.1 and I've tested both under Linux and MacOSX. It took a while to reproduce it because I thought the problem had gone away, but actually I'd just

[Haskell-cafe] Re: Weird ghci behaviour?

2007-11-12 Thread Chris Smith
Dan Piponi wrote: Several months late I now have a simple test case for what I think is either a GHC bug or a misexpectation on my part. Here's what it looks like to me. If there is a .hi and .o file sitting around for a module, then GHCi will load it in compiled mode, and only let you access

Re: [Haskell-cafe] Interesting effect of upgrading GHC

2007-11-12 Thread Andrew Coppin
Gwern Branwen wrote: FWIW, I was actually discussing compilation with -O2 on 6.8 with Sjannssen and he told me that even with -O2 turned on, GHC now defaults to -fasm instead of -fvia-c. Ah. Yeah, that could well make a big difference... (Especially on a machine with insufficient RAM.)

Re: [Haskell-cafe] Re: Weird ghci behaviour?

2007-11-12 Thread Henning Thielemann
On Mon, 12 Nov 2007, Chris Smith wrote: Dan Piponi wrote: Several months late I now have a simple test case for what I think is either a GHC bug or a misexpectation on my part. Here's what it looks like to me. If there is a .hi and .o file sitting around for a module, then GHCi will

[Haskell-cafe] Data.Set.member vs Data.List.elem

2007-11-12 Thread Neil Mitchell
Hi, Is there a good reason that Data.Set uses the name member while Data.List (or the Prelude) uses the name elem, for what to me seem identical concepts. I realise that in Set's the traditional test is for membership, but it seems awfully arbitrary that one jumped one way and one jumped the

Re: [Haskell-cafe] Re: Weird ghci behaviour?

2007-11-12 Thread Dan Piponi
On Nov 12, 2007 1:59 PM, Henning Thielemann [EMAIL PROTECTED] wrote: See http://www.haskell.org/ghc/docs/latest/html/users_guide/interactive-evaluation.html I guess the key sentence is: For technical reasons, GHCi can only support the *-form for modules which are interpreted, so compiled

[Haskell-cafe] Trouble using HDBC-postgres on Windows - can't find libpq.dll

2007-11-12 Thread Justin Bailey
I've compiled HDBC 1.0.1 and HDBC-postgresql-1.0.1 under Windows with a little tweaking. However, when I try to run the tests I get this error: runghc -package HDBC-postgresql runtests.hs ghc.exe: can't load .so/.DLL for: pq (addDLL: unknown error) libpq.dll is in my path, and I added the

Re: [Haskell-cafe] Re: How to do this in Haskell

2007-11-12 Thread Duncan Coutts
On Mon, 2007-11-12 at 16:16 -0500, Joe Buehler wrote: Chris Smith wrote: Right, which is why I'm trying to avoid reinventing it. Writing a new HTML editor is not even a consideration. I'm looking at the effort to integrate the Mozilla editor component, and wondering if there are other

Re: [Haskell-cafe] Data.Set.member vs Data.List.elem

2007-11-12 Thread Ryan Dickie
Perhaps this has something to due with uniqueness. A list can have many duplicate elements while a set is supposed to be unique. On Nov 12, 2007 2:48 PM, Neil Mitchell [EMAIL PROTECTED] wrote: Hi, Is there a good reason that Data.Set uses the name member while Data.List (or the Prelude) uses

Re: [Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Donn Cave
On Nov 12, 2007, at 12:00 PM, Galchin Vasili wrote: I am looking for (objective.. i.e. not juts FPL cheerleading) opinions as to why Wall Street ( http://www.janestcapital.com/) and banking are now using OCaml and Haskell. I really want to understand what industrial markets are adopting

[Haskell-cafe] can someone explain monad transformers to me, or how do you combine maybe and IO?

2007-11-12 Thread Anatoly Yakovenko
I wanted something that would work like liftM but with IO as well, so something like this: liftM ((+) 1) $ Just 1 Just 2 but with the function lifted being of type (a - IO b). so I came up with maybeIO::(a - IO b) - (Maybe a - IO (Maybe b)) maybeIO ff = (\ aa - case aa of

Re: [Haskell-cafe] Re: Weird ghci behaviour?

2007-11-12 Thread Claus Reinke
For technical reasons, GHCi can only support the *-form for modules which are interpreted, so compiled modules and package modules can only contribute their exports to the current scope. But it does mean the interpreter isn't referentially transparent, which is weird for a language that puts so

Re: [Haskell-cafe] can someone explain monad transformers to me, or how do you combine maybe and IO?

2007-11-12 Thread Luke Palmer
On Nov 12, 2007 11:59 PM, Anatoly Yakovenko [EMAIL PROTECTED] wrote: works just like I want it to. But isn't this something that a monad transformer should be able to do? Yes. And I have rewritten MaybeT several times for use in my own projects. We want MaybeT! Luke

Re: [Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Derek Elkins
On Mon, 2007-11-12 at 15:51 -0800, Donn Cave wrote: On Nov 12, 2007, at 12:00 PM, Galchin Vasili wrote: I am looking for (objective.. i.e. not juts FPL cheerleading) opinions as to why Wall Street ( http://www.janestcapital.com/) and banking are now using OCaml and Haskell. I really

Re: [Haskell-cafe] can someone explain monad transformers to me, or how do you combine maybe and IO?

2007-11-12 Thread Alfonso Acosta
On Nov 13, 2007 1:08 AM, Luke Palmer [EMAIL PROTECTED] wrote: We want MaybeT! I third this proposal. It would be nice having MaybeT included in mtl. Besides, and although it's not exactly the same, you can emulate the Maybe monad by using the Either monad (the instance is defined in

[Haskell-cafe] Fwd: Trouble using HDBC-postgres on Windows - can't find libpq.dll

2007-11-12 Thread Justin Bailey
Well, I answered my own question. Unlike UNIX, specifying a library without the leading lib causes the library to not be found. Not sure if that's a GHC linking problem or what. Changing the library requirement to libpq in the .cabal file did the trick tho. Justin -- Forwarded message

Re: [Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Jon Harrop
On Monday 12 November 2007 20:00, Galchin Vasili wrote: I am looking for (objective.. i.e. not juts FPL cheerleading) opinions as to why Wall Street ( http://www.janestcapital.com/) and banking are now using OCaml and Haskell. They have been using OCaml and Haskell for many years now. They