Re: [Haskell-cafe] Binary parser combinators and pretty printing

2005-09-14 Thread Einar Karttunen
On 13.09 23:31, Tomasz Zielonka wrote: > How about all these points together?: > > a) Simple monadic interface I think I already have this - minus packaging and documentation. > b) Using better combinators This is lacking. > c) Using TH to generate code for the simple cases I have TH for gene

Re: [Haskell-cafe] Re: Functional vs Imperative

2005-09-14 Thread Cale Gibbard
On 14/09/05, Dhaemon <[EMAIL PROTECTED]> wrote: > Hi again, > Thanks to everyone for replying. > I think I get it now; I was focusing on the wrong aspect of the question. I > was totally overlooking referential transparency and the cascade of > 'capabilities'(lazyness, etc) it creates. Thus evalu

[Haskell-cafe] haskell emacs mode

2005-09-14 Thread Chris Wright
Hi, When I download and install "Latest" haskell-mode from http://www.iro.umontreal.ca/~monnier/elisp/ it seems as if (though the dir is named haskell-mode-2.0) that version 1.43 is loaded doing $ grep version haskell-mode.el gives: ;; the Free Software Foundation; either version 2, or (a

[Haskell-cafe] Re: Functional vs Imperative

2005-09-14 Thread Dhaemon
Hi again, Thanks to everyone for replying. I think I get it now; I was focusing on the wrong aspect of the question. I was totally overlooking referential transparency and the cascade of 'capabilities'(lazyness, etc) it creates. Thus evaluation is just getting values out of expressions, actions(whi

Re: [Haskell-cafe] How to debug GHC

2005-09-14 Thread Frederik Eaton
On Wed, Sep 14, 2005 at 02:44:11PM +0100, Simon Marlow wrote: > On 10 September 2005 21:15, Frederik Eaton wrote: > > > On Fri, Sep 02, 2005 at 04:40:05PM +0400, Bulat Ziganshin wrote: > >> Hello Nils, > >> > >> Friday, September 02, 2005, 10:47:05 AM, you wrote: > >> > >>> Compile your prog

[Haskell-cafe] How to call ICS from Haskell

2005-09-14 Thread Huong Nguyen
Hello everybody,   Do you know how to call ICS (Integrated Canonizer and Solver: www.icansolve.com) or PVS (Prototype Verification System) from Haskell ?   Thank you in advance. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Mark Carter
Arthur Baars wrote: Hi, A "Checkbox" is instance of the class Checkable: http://wxhaskell.sourceforge.net/doc/ Graphics.UI.WX.Classes.html#t%3ACheckable This means you can "get" and "set" the "checked" property for checkboxes. for example: c <- get cbEdit checked set cbEdit [checked :=

Re: [Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Duncan Coutts
On Wed, 2005-09-14 at 18:24 +0200, Joel Reymont wrote: > On Sep 14, 2005, at 5:54 PM, Arthur Baars wrote: > > > This means you can "get" and "set" the "checked" property for > > checkboxes. > > for example: > > c <- get cbEdit checked > > set cbEdit [checked := not c ] > > Any particular reas

Re: [Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Joel Reymont
On Sep 14, 2005, at 5:54 PM, Arthur Baars wrote: This means you can "get" and "set" the "checked" property for checkboxes. for example: c <- get cbEdit checked set cbEdit [checked := not c ] Any particular reason to enclose the arguments in square brackets apart from cool-looking syntax?

Re: [Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Arthur Baars
Hi, A "Checkbox" is instance of the class Checkable: http://wxhaskell.sourceforge.net/doc/ Graphics.UI.WX.Classes.html#t%3ACheckable This means you can "get" and "set" the "checked" property for checkboxes. for example: c <- get cbEdit checked set cbEdit [checked := not c ] The following

[Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Mark Carter
I'm a complete n00b to Haskell, and I am trying to write an experimental app using wxHaskell. I'm getting on suprisingly well, given that I have practially no idea what I'm doing. In my main loop I have cbEdit <- checkBox p1 [text := "Edit Mode", on command := onCbEdit textlog ] where p1

RE: [Haskell-cafe] static typing and interactivity

2005-09-14 Thread Simon Marlow
On 18 August 2005 16:11, Jake Luck wrote: >> One slight annoyance using Haskell is the inability to load modules >> with type problems in the interactive environment (i.e. GHCi). When >> I have a type error, it would be nice to have an interactive way to >> explore what the compiler thinks about

RE: [Haskell-cafe] How to debug GHC

2005-09-14 Thread Simon Marlow
On 10 September 2005 21:15, Frederik Eaton wrote: > On Fri, Sep 02, 2005 at 04:40:05PM +0400, Bulat Ziganshin wrote: >> Hello Nils, >> >> Friday, September 02, 2005, 10:47:05 AM, you wrote: >> >>> Compile your program with -prof -auto-all (make sure you have >>> the >> >>> I tried this out

RE: [Haskell-cafe] Re: Thread pool in GHC

2005-09-14 Thread Simon Marlow
On 07 September 2005 16:04, Dinh Tien Tuan Anh wrote: > So is there a way to reuse thread ? > I think eventhough threads in GHC are extremely lighweight, it still > make a different if u keep launching and killing thread in so many > times. My advice would be to try without a thread pool first,