On Wed, Oct 5, 2011 at 2:37 PM, Tom Thorne <thomas.thorne21@gmail.com> wrote:
The only problem is that now I am getting random occasional segmentation faults that I was not been getting before, and once got a message saying:
Main: schedule: re-entered unsafely
Perhaps a 'foreign import unsafe' should be 'safe'?
I think this may be something to do with creating a lot of sparks though, since this occurs whether I have the parallel GC on or not.

Unless you (or some library you're using) is doing what the error message says then you should file a GHC bug here:

http://hackage.haskell.org/trac/ghc/

-- Johan