Re: [Haskell-cafe] Dread __DISCARD__

2005-09-19 Thread Arthur van Leeuwen
On 17-sep-2005, at 18:14, Wolfgang Thaller wrote: I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is

RE: [Haskell-cafe] generics question, logical variables

2005-09-19 Thread Simon Peyton-Jones
Ralf, I'm a bit snowed under at the moment with the POPL PC meeting, but I'm quite open to changing GHC's deriving behaviour. It's not hard to change. The hard thing is figuring out just what the specification should be. So if you and others are able to evolve a better design, I'd be happy to

Re: [Haskell-cafe] generics question, logical variables

2005-09-19 Thread Yitzchak Gale
Ralf Lammel wrote: Does anyone want to speak up and mention scenarios that would benefit from kind polymorphism? (In Haskell, we are likely to see kind polymorphism, if at all, in the form of type classes whose type parameters can be of different, perhaps of all kinds.) Here are two

RE: [Haskell-cafe] Nofib documentation

2005-09-19 Thread Simon Peyton-Jones
I dont think theres a nofib reference document. (Would someone like to write one?) The standard/slow/fast inputs are meant to vary the input data to the benchmarks so they take more or less time. Not all programs are set up that way because we didnt write all of them, and dont

Re: [Haskell-cafe] Newbie syntax question

2005-09-19 Thread Henning Thielemann
On Fri, 16 Sep 2005, ChrisK wrote: So I think map ( (flip foo) 5 ) my_list_of_lists_of_doubles Function application is left-associative, so you can save parentheses. map (flip foo 5) my_list_of_lists_of_doubles ___ Haskell-Cafe mailing list

RE: [Haskell-cafe] How to debug GHC

2005-09-19 Thread Simon Marlow
On 19 September 2005 03:57, Frederik Eaton wrote: It could be a bug - can you reduce the example and report it? GHC's profiler tries to overlay a lexical call graph on to the dynamic execution of the program. It does this more or less in the way you described before: every function gets an

Re: [Haskell-cafe] How to get all the paths of a tree

2005-09-19 Thread Tomasz Zielonka
On Mon, Sep 19, 2005 at 12:52:47PM +0200, Rene de Visser wrote: -- This function can effectively only be used bottom up, because the only input -- parameter to func comes from the call (map (treeFold func)), i.e. the rest of -- the tree. We can only tell when are are at a leaf ( [b] is

Re: [Haskell] Re: [Haskell-cafe] Haskell versus Lisp

2005-09-19 Thread Wolfgang Jeltsch
Am Freitag, 16. September 2005 16:46 schrieben Sie: . . . In Haskell, code is data too because code in the sense of imperative actions is described by IO values. You cannot analyse them. But you can use your do expressions etc. to construct action descriptions with a more general

Re: [Haskell] Re: [Haskell-cafe] Haskell versus Lisp

2005-09-19 Thread Wolfgang Jeltsch
Am Freitag, 16. September 2005 18:40 schrieben Sie: Wolfgang Jeltsch wrote: Bearing this in mind, and hoping you can see where I'm coming from, I think my question is: shouldn't you guys be using Lisp? Lisp is impure, weakly typed and has way too many parentheses. Why would

R: [Haskell-cafe] How to get all the paths of a tree

2005-09-19 Thread Santoemma Enrico
Yeah! I've been struggling on concatMap for a noon and now here is the solution I've been unable to find. Thank you very much Enrico -Messaggio originale- Da: J. Garrett Morris [mailto:[EMAIL PROTECTED] Inviato: lunedì 19 settembre 2005 15.26 A: Santoemma Enrico Cc: Haskell-Cafe

Re: [Haskell-cafe] Newbie syntax question

2005-09-19 Thread André Vargas Abs da Cruz
1. map (flip foo 5) my_list_of_lists_of_doubles 2. map (`foo` 5) my_list_of_lists_of_doubles 3. map (\x-foo x 5) my_list_of_lists_of_doubles 4. [foo x 5 | x - my_list_of_lists_of_doubles] 5. map (foo `flip` 5) my_list_of_lists_of_doubles Thank you all, for your answers. This nice discussion

[Haskell-cafe] case of (was: [Haskell] Mixing monadic and non-monadic functions)

2005-09-19 Thread Andrew Pimlott
On Sat, Sep 17, 2005 at 06:56:36PM +0100, Ben Rudiak-Gould wrote: * The new syntax is really nice as a replacement for the annoyingly common x - foo ; case x of... idiom that I've always disliked. I might wish for case of to mean \x - case x of: foo = case of ... Useful outside of

Re: [Haskell-cafe] case of (was: [Haskell] Mixing monadic and non-monadic functions)

2005-09-19 Thread Donn Cave
On Mon, 19 Sep 2005, Andrew Pimlott wrote: On Sat, Sep 17, 2005 at 06:56:36PM +0100, Ben Rudiak-Gould wrote: * The new syntax is really nice as a replacement for the annoyingly common x - foo ; case x of... idiom that I've always disliked. I might wish for case of to mean \x - case x

Re: [Haskell-cafe] case of (was: [Haskell] Mixing monadic and non-monadic functions)

2005-09-19 Thread John Meacham
On Mon, Sep 19, 2005 at 02:17:42PM -0700, Andrew Pimlott wrote: On Sat, Sep 17, 2005 at 06:56:36PM +0100, Ben Rudiak-Gould wrote: * The new syntax is really nice as a replacement for the annoyingly common x - foo ; case x of... idiom that I've always disliked. I might wish for case

Re: [Haskell-cafe] How to debug GHC

2005-09-19 Thread Frederik Eaton
On Mon, Sep 19, 2005 at 02:22:10PM +0100, Glynn Clements wrote: Frederik Eaton wrote: In addition to the stack trace problems, I found: (1) a problem where output freezes when it is being piped through 'tee' and the user presses ^S and then ^Q That's the terminal driver; use stty

Re: [Haskell-cafe] Dread __DISCARD__

2005-09-19 Thread Bernard Pope
On Sat, 2005-09-17 at 04:55 -0400, Steven Elkins wrote: On 9/17/05, Kenneth Hoste [EMAIL PROTECTED] wrote: Can you tell us where you got bjpop-ray ? I wrote my own raytracer in Haskell, and would like to check this one out too... http://www.cs.mu.oz.au/~bjpop/code.html Don't expect