Translation of GHC typechecker output to haskell-src-exts's 'Type'