Re: [Haskell-cafe] Type inference

2006-02-09 Thread Brian Hulley
Cale Gibbard wrote: On 09/02/06, Brian Hulley [EMAIL PROTECTED] wrote: Brian Hulley wrote: f :: forall m. (forall a. a-m a) - c - d - (m c, m d) Of course this type doesn't work on your original example, since (,) is a type constructor with two parameters, not one, but this type signature

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Esa Ilari Vuokko
On 2/9/06, Frederico Franzosi [EMAIL PROTECTED] wrote: Hi, I don't really know how this stuff exactly works, but here's few things I have found useful when I ran into this sort of problems. I'm developping a package wich imports C functions. For example if I use: $ghc -package

[Haskell-cafe] Elementary HaXml question

2006-02-09 Thread Koen . Roelandt
Hi all, I'm new to Haskell and HaXml and I'm playing around with the latter to clean some (well-formed) 'legacy' html. This works fine except for the following cases. Some of the elements to be cleaned are: font size=4iHello World/i/font ifont size=4Hello World/font/i This should

[Haskell-cafe] Re: FFI question

2006-02-09 Thread Simon Marlow
Frederico Franzosi wrote: I'll try to make it short. I'm developping a package wich imports C functions. the fact is that when I try to compile if I call the compiler in the usual way, using -package and -llib it gives an undefined reference error... For example if I use: $ghc -package

Re: [Haskell-cafe] Type inference

2006-02-09 Thread Andreas Rossberg
Brian Hulley wrote: Fred Hosch wrote: Is type inferencing in Haskell essentially the same as in SML? The most significant difference certainly is that type inference has been beefed up with type classes in Haskell, which are quite a powerful mechanism refining Hindley/Milner inference.

[Haskell-cafe] Re: Emulating bash pipe/ process lib

2006-02-09 Thread Simon Marlow
Marc Weber Marc Weber wrote: Hi. I want to write a little haskell program executing about 4 programs passing data via pipes. As my python script seems to be slower than a bash script I want to try a ghc executable now. It should invoke different parts of a text to speech chain. This way I have

Re: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Kurt Hutchinson
On 2/9/06, Marc Weber Marc Weber [EMAIL PROTECTED] wrote: Hi. I want to write a little haskell program executing about 4 programs passing data via pipes. As my python script seems to be slower than a bash script I want to try a ghc executable now. It should invoke different parts of a text to

Re: [Haskell-cafe] Elementary HaXml question

2006-02-09 Thread Koen . Roelandt
I'm new to Haskell and HaXml and I'm playing around with the latter to clean some (well-formed) 'legacy' html. This works fine except for the following cases. Some of the elements to be cleaned are: font size=4iHello World/i/font ifont size=4Hello World/font/i This

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Donn Cave
On Thu, 9 Feb 2006, Christopher Brown wrote: Frederico, Have you tried using Green Card? http://haskell.org/greencard/ It is basically a foreign function pre-processor for Haskell. It allows your Haskell programs to interface with C libraries in a very straight forward way. I

[Haskell-cafe] standard poll/select interface

2006-02-09 Thread Bulat Ziganshin
Hello John, Thursday, February 09, 2006, 3:19:30 AM, you wrote: JM If we had a good standard poll/select interface in System.IO then we JM actually could implement a lot of concurrency as a library with no JM (required) run-time overhead. I'd really like to see such a thing get JM into the

Re[2]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Bulat Ziganshin
Hello Donn, Thursday, February 09, 2006, 8:58:27 PM, you wrote: DC Slow devices like pipes, sockets etc. get along fine with Handles DC or whatever buffered I/O - as long as you have only one going at a time. DC Multiple input sources - like, say you want to read a process' output DC (unit 1)

[Haskell-cafe] FFI Wiki Page (was: FFI question)

2006-02-09 Thread Dimitry Golubovsky
Bulat wrote: we need to establish FFI page on the wiki and give at least links to all this packages and small info about using FFI with ghc/hugs There is such a page (to be more precise, a section of a page): http://haskell.org/hawiki/LibrariesAndTools section FFI Preprocessors Also there

Re[2]: [Haskell-cafe] Emulating bash pipe/ process lib

2006-02-09 Thread Donn Cave
On Thu, 9 Feb 2006, Bulat Ziganshin wrote: Thursday, February 09, 2006, 8:58:27 PM, you wrote: DC Slow devices like pipes, sockets etc. get along fine with Handles DC or whatever buffered I/O - as long as you have only one going at a time. DC Multiple input sources - like, say you want to read

Re: [Haskell-cafe] standard poll/select interface

2006-02-09 Thread Einar Karttunen
On 09.02 22:24, Bulat Ziganshin wrote: as i understand this idea, transformer implementing async i/o should intercept vGetBuf/vPutBuf calls for the FDs, start the appropriate async operation, and then switch to another Haskell threads. the I/O manager thread should run select() in cycle and

[Haskell-cafe] Language shootout (reloaded)

2006-02-09 Thread Donald Bruce Stewart
Just so we can feel that we're doing the right things :) On the great language shootout, as of last night, we're: * Ranked overall number 1, by a good margin: * Ranked number 1 on lines of code * Ranked number 2 on speed.

Re: [Haskell-cafe] Numerical methods in Haskell

2006-02-09 Thread Bulat Ziganshin
Hello Creighton, Friday, February 10, 2006, 12:45:21 AM, you wrote: CH Between google searching and looking through the activity CH report, I take it that no one has really developed serious CH libraries for matrix manipulations, diff eqs, etc. it was a discussion and development in this

Re: [Haskell-cafe] Language shootout (reloaded)

2006-02-09 Thread Stefan Holdermans
Don Stewart wrote: P.S. I remember having a discussion on #haskell 2 weeks ago where we all agreed that Haskell placing #1 was pretty much impossible. Did we have an inferiority complex? Still---and, please, forgive me for this---I feel that us being #1 now tells us more about the Haskell

Re: [Haskell-cafe] Language shootout (reloaded)

2006-02-09 Thread Cale Gibbard
On 10/02/06, Stefan Holdermans [EMAIL PROTECTED] wrote: Don Stewart wrote: P.S. I remember having a discussion on #haskell 2 weeks ago where we all agreed that Haskell placing #1 was pretty much impossible. Did we have an inferiority complex? Still---and, please, forgive me for