haskell-tools-backend-ghc

Creating the Haskell-Tools AST from GHC's representations

https://github.com/nboldi/haskell-tools

Version on this page:0.5.0.0
LTS Haskell 12.26:1.1.0.2
Stackage Nightly 2018-09-28:1.1.0.2
Latest on Hackage:1.1.1.0

See all snapshots haskell-tools-backend-ghc appears in

This package collects information from various representations of a Haskell program in GHC. Basically GHC provides us with the parsed, the renamed and the type checked representation of the program, if it was type correct. Each version contains different information. For example, the renamed AST contains the unique names of the definitions, however, template haskell splices are already resolved and thus missing from that version of the AST. To get the final representation we perform a transformation on the parsed and renamed representation, and then use the type checked one to look up the types of the names. The whole transformation is defined in the Modules module. Other modules define the functions that convert elements of the GHC AST to our AST.