I'm trying to dump type information of all identifiers in an Haskell project, basically it's the same as traversing the typed abstract syntax tree.
From another question, OCaml exposes its internal APIs through a library called compiler-libs. I'm wondering how is Haskell's support for similar task?