Re: [Haskell-cafe] Monad.Reader 8: Haskell, the new C++

2007-09-14 Thread Adrian Neumann
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I heard only rumors, but isn't Lisp supposed to be just that? A programmable programming language? Peter Verswyvelen schrieb: This is all very cool stuff, but sometimes I wander if it isn't possible to drop the special languages for fiddling

[Haskell-cafe] wxhaskell package for ubuntu feisty, amd64

2007-09-14 Thread Iván Pérez Domínguez
I'm trying to install wxhaskell in ubuntu feisty, with ghc-6.6. After several days of trial and error and a few hours trying to change all types in my program to gtk2hs types, I'm tired. Does anyone have a .deb for wxhaskell that works with ghc-6.6?

RE: [Haskell-cafe] wxhaskell package for ubuntu feisty, amd64

2007-09-14 Thread José Miguel Vilaça
Hi Iván, Try this: * install GHC and darcs: sudo apt-get install ghc6 sudo apt-get install darcs * install WxWidgets 2.6 sudo apt-get install libwxgtk2.6-dev sudo apt-get install freeglut3-dev sudo apt-get install g++ * install wxHaskell darcs get

Re: [Haskell-cafe] Clarification Please

2007-09-14 Thread Andrew Wagner
You may also find this function helpful. I'll let you work out why/how: uncurry :: (a - b - c) - (a, b) - c uncurry f p = f (fst p) (snd p) On 9/13/07, Krzysztof Kościuszkiewicz [EMAIL PROTECTED] wrote: On Fri, Sep 14, 2007 at 03:45:02AM +0100, PR Stanley wrote: 5. Using merge, define a

Re: [Haskell-cafe] Re: interaction between OS processes

2007-09-14 Thread Bryan O'Sullivan
Aaron Denney wrote: If you want expect like functionality, i.e. working for arbitrary client programs, you'll need to use pseudottys, as expect, script, screen, xterm, etc. do. I packaged up a patch for System.Posix to add this a month or three ago, but forgot to follow through on it.

[Haskell-cafe] Re: Monad.Reader 8: Haskell, the new C++

2007-09-14 Thread Stefan Monnier
PS: And, no, you won't be able to set breakpoints in type-level programs... Yet. Stefan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Monad.Reader 8: Haskell, the new C++

2007-09-14 Thread Peter Verswyvelen
I'm not sure, I don't know LISP in detail, but as far as I know, LISP is a fully dynamic language. I actually meant a static language where you build your own strong types using the language itself. On the micro level, the language only knows abouts bits and bytes without semantics, just like

[Haskell-cafe] Re: Monad.Reader 8: Haskell, the new C++

2007-09-14 Thread Toby Allsopp
Peter Verswyvelen writes: I'm not sure, I don't know LISP in detail, but as far as I know, LISP is a fully dynamic language. I actually meant a static language where you build your own strong types using the language itself. [...] You might be interested in the Qi language[1]. Qi is

[Haskell-cafe] Sequencing Operations in a Monad

2007-09-14 Thread SevenThunders
I have a matrix library written in C and interfaced into Haskell with a lot of additional Haskell support. The C library of course has a lot of side effects and actually ties into the BLAS libraries, thus at the present time, most of the interesting calls are done in the IO monad. I have no

Re: [Haskell-cafe] Memory leak or wrong use of Array ?

2007-09-14 Thread L.Guo
Hi Stuart. Thanks for your advice about thunk, though I do not understand *thunk* very well. Is there any other discriptions about thunk ? I have tried the *seq* operation. When input is 10,000,000, the memory still leak, and there is still a stack overflow. I changed some mapM_ to sequence .

Re: [Haskell-cafe] Memory leak or wrong use of Array ?

2007-09-14 Thread Brandon S. Allbery KF8NH
On Sep 14, 2007, at 21:35 , L.Guo wrote: Thanks for your advice about thunk, though I do not understand *thunk* very well. Is there any other discriptions about thunk ? A thunk is, in general, a piece of code which represents a suspended or delayed action. In Haskell, it represents a lazy

Re: [Haskell-cafe] Sequencing Operations in a Monad

2007-09-14 Thread Ryan Ingram
As long as the FFI calls don't make destructive updates to existing matrices, you can do what you want. For example, assuming you have: -- adds the second matrix to the first overwrites the first matrixAddIO :: MatrixIO - MatrixIO - IO () -- creates a new copy of a matrix matrixCopyIO ::

Re: [Haskell-cafe] Sequencing Operations in a Monad

2007-09-14 Thread SevenThunders
Ryan Ingram wrote: As long as the FFI calls don't make destructive updates to existing matrices, you can do what you want. For example, assuming you have: -- adds the second matrix to the first overwrites the first matrixAddIO :: MatrixIO - MatrixIO - IO () -- creates a new copy

Re: [Haskell-cafe] Sequencing Operations in a Monad

2007-09-14 Thread Ronald Guida
SevenThunders wrote: I have a matrix library written in C and interfaced into Haskell with a lot of additional Haskell support. [snip] Unfortunately if I wrap my matrix references in the IO monad, then at best computations like S = A + B are themselves IO computations and thus whenever they

Re: [Haskell-cafe] haskell on llvm?

2007-09-14 Thread Ryan Dickie
I could see it as a useful abstraction instead of directly generating assembly. To me the idea behind llvm seems nice and clean and academic to a certain degree. It can see it as something to look out for in the future. On 9/13/07, brad clawsie [EMAIL PROTECTED] wrote: has anyone ever