[Haskell-cafe] Re: Fast Mutable Variables for the IO and ST monads

2006-02-08 Thread Simon Marlow
Bulat Ziganshin wrote: Hello Simon, Monday, February 06, 2006, 4:41:50 PM, you wrote: SM The Var class is interesting - basically the equivalent of the MArray SM class for mutable variables. Is there a reason you couldn't use the SM same pattern as the MArray class? MArray of Ptr works

[Haskell-cafe] Re: Streams: the extensible I/O library

2006-02-08 Thread Simon Marlow
Bulat Ziganshin wrote: I have developed a new I/O library that IMHO is so sharp that it can eventually replace the current I/O facilities based on using Handles. The main advantage of the new library is its strong modular design using typeclasses. I've taken a brief look, and I must say it's

[Haskell-cafe] Spotted in Haskell Weekly News: February 06, 2006

2006-02-08 Thread Graham Klyne
Donald Bruce Stewart wrote: Haskell Weekly News: February 06, 2006 : Oleg says, The implementation of RSA on the type level is left for future work. Methinks this gives a whole new meaning to type security. :) #g -- Graham Klyne For email:

[Haskell-cafe] Type inference

2006-02-08 Thread Fred Hosch
Is type inferencing in Haskell essentially the same as in SML? Thanks. ---Fred Hosch ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Brian Hulley
Fred Hosch wrote: Is type inferencing in Haskell essentially the same as in SML? Thanks. Well, that depends on what you mean by essentially the same ;-) Both languages are based on the same Hindley-Milner type inference algorithm, so both suffer from the same problem that a function such as

Re: [Haskell-cafe] Re: Fast Mutable Variables for the IO and ST monads

2006-02-08 Thread John Meacham
On Wed, Feb 08, 2006 at 11:13:20AM +, Simon Marlow wrote: The problem with doing this is you need a pretty beefy strictness analyser to be able to tell whether the reference is being used strictly, this is far beyond what GHC does (I'm impressed that jhc can do this, but I don't think

[Haskell-cafe] FFI question

2006-02-08 Thread Frederico Franzosi
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 PKGname-PKGversion -fffi -o main

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Cale Gibbard
On 08/02/06, Brian Hulley [EMAIL PROTECTED] wrote: Fred Hosch wrote: Is type inferencing in Haskell essentially the same as in SML? Thanks. Well, that depends on what you mean by essentially the same ;-) Both languages are based on the same Hindley-Milner type inference algorithm, so both

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Brian Hulley
Cale Gibbard wrote: On 08/02/06, Brian Hulley [EMAIL PROTECTED] wrote: Fred Hosch wrote: Is type inferencing in Haskell essentially the same as in SML? Thanks. Well, that depends on what you mean by essentially the same ;-) Both languages are based on the same Hindley-Milner type inference

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Brian Hulley
Brian Hulley wrote: f :: (forall a m. a - m a) - c - d - (m c, m d) The above is wrong - there is no way to quantify m properly. This must be why intersection types need to be written with after all ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Brian Hulley
Brian Hulley wrote: Brian Hulley wrote: f :: (forall a m. a - m a) - c - d - (m c, m d) The above is wrong - there is no way to quantify m properly. This must be why intersection types need to be written with after all What am I saying! It's right after all, and might be

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Brian Hulley
Brian Hulley wrote: Brian Hulley wrote: Brian Hulley wrote: f :: (forall a m. a - m a) - c - d - (m c, m d) The above is wrong - there is no way to quantify m properly. This must be why intersection types need to be written with after all What am I saying! It's right after

[Haskell-cafe] Emulating bash pipe/ process lib

2006-02-08 Thread Marc Weber Marc Weber
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 one interface then. Talar und

Re: [Haskell-cafe] Type inference

2006-02-08 Thread Cale Gibbard
On 09/02/06, Brian Hulley [EMAIL PROTECTED] wrote: Brian Hulley wrote: Brian Hulley wrote: Brian Hulley wrote: f :: (forall a m. a - m a) - c - d - (m c, m d) The above is wrong - there is no way to quantify m properly. This must be why intersection types need to be written