Fail: <> from finalizers and stuff

2004-07-05 Thread Sven Moritz Hallberg
Dear Foreign Function Interface, why does a program like the following fail with a "<>" exception (using GHC 6.2 on MacOS X)? -snip- import Foreign main = do f <- mkFinPtr finalizer fp <- newForeignPtr f nullPtr putStrLn "Hello World" finalizer p

RE: Fail: <> from finalizers and stuff

2004-07-05 Thread Simon Marlow
On 04 July 2004 23:54, Sven Moritz Hallberg wrote: > Dear Foreign Function Interface, > > why does a program like the following fail with a "<>" exception > (using GHC 6.2 on MacOS X)? > > -snip- > import Foreign > > main = > do > f <- mkFinPtr finalizer > fp