How to get unfoldings inside a GHC plugin