Linking to Haskell code from an external program

Colin Paul Adams colin at
Tue Nov 25 04:10:18 EST 2008

>>>>> "Simon" == Simon Marlow <marlowsd at> writes:

    >> Links now, but I'm still getting the crash in the garbage
    >> collector. :-(

    Simon> Perhaps try reducing the example until the problem goes
    Simon> away, so we can see at which stage it gets introduced?  Or
    Simon> can you boil down your example to something we can
    Simon> reproduce?

I've managed to solve it this morning. It was the way I was setting up argc and
argv (badly) for the call to hs_init.
Doing it properly means there are no longer any crashes with either
Eiffel compliler.
Colin Adams
Preston Lancashire

More information about the Glasgow-haskell-users mailing list