@hackage / ghc-dump-core

An AST and compiler plugin for dumping GHC's Core representation.

Latest0.2.1.0

About

Metadata

  • Last updated , by BenGamari
  • License BSD-3-Clause
  • Categories Development
  • Maintained by: ben@well-typed.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.2.1
  2. 9.0.1
  3. 8.10.4
  4. 8.8.3
  5. 8.6.5
  6. 8.4.4
  7. 8.2.2
  8. 8.0.2
  9. 7.10.3

Readme

ghc-dump is a library, GHC plugin, and set of tools for recording and analysing GHC's Core representation. The plugin is compatible with GHC 7.10 through 8.3, exporting a consistent (albeit somewhat lossy) representation across these versions. The AST is encoded as CBOR, which is small and easy to deserialise. . This package provides the AST and compiler plugin. See the ghc-dump-util package for a useful command-line tool for working with dumps produced by this plugin. . = Usage . GhcDump.Plugin provides a Core-to-Core plugin which dumps a representation of the Core AST to a file after every Core-to-Core pass. To use it, simply install this package and add -fplugin GhcDump.Plugin to your GHC command-line. See the README for further analysis tips.