This may just be a question of bumping the version bounds on base and ghc-prim. The test suite seems to pass fine at least.