Enable use with nonmoving collector
This is a very rough attempt at getting things working with the nonmoving collector.
Rts.h
doesn't export the things I needed so I ended up just copying bits of NonMoving.h
into the stub.cpp file. The right thing to do would be to submit a patch to GHC to export more nonmoving functions from Rts.h
. I'll do that once someone has confirmed that the function I'm using is the right one.