How to modify GHC internals?