Re: GHC 7.2.2 RC 1

2011-11-11 Thread Leon Smith
Chans are basically linked lists with the next pointer wrapped in an MVar. The source is actually very readable. So yes, it probably is the same thing. Best, Leon On Fri, Nov 11, 2011 at 11:37 AM, Nathan Howell nathan.d.how...@gmail.com wrote: We're hitting something that looks similar

First class modules (was Existential Typing)

2001-10-29 Thread Leon Smith
On Wednesday 24 October 2001 12:32, Simon Peyton-Jones wrote: The elimination of stupid existential wrapper constructors is discussed in a bit more detail in the paper Mark and I wrote recently: First class modules for Haskell

Existential Typing (was Multi-parameter OOP)

2001-10-24 Thread Leon Smith
On Friday 19 October 2001 11:02, George Russell wrote: Recently I've been experimenting with a sort of OOP with GHC, [...] I find your discussion rather intriguing, but I'm not sure I fully understand what you are trying to do. Existential typing allows for what I would call dynamic dispatch,

Re: unsafePtrCompare, anybody?

2001-09-17 Thread Leon Smith
I can't think of a way to use unsafePtrCompare safely :-) The relative ordering of objects isn't guaranteed to be stable under GC. Cheers, Simon Doh, that would throw a monkey wrench into things, wouldn't it? I know of compacting GC algorithms, but I didn't consider that GHC

unsafePtrCompare, anybody?

2001-09-15 Thread Leon Smith
I'm writing an atom table for a compiler/interpreter, and it would be really nice to use unsafePtrLT to implement tree-based finite maps. For clarification, my atom table consists of these three functions: mkAtom :: String - IO Atom show :: Atom - String (==) :: Atom - Atom - Bool such

Problems finding modules with GHC 5

2001-06-04 Thread Leon Smith
I'm having problems running programs that use modules found in the hslibs libraries. I've tried these with GHC 5.00.1 on both a x86 Linux box on which I compiled GHC from source, and a Sparc box where I installed the precompiled binaries. If I simply try to load my program (which uses MArray),