ghc-dump-core: An AST and compiler plugin for dumping GHC's Core representation.

[ bsd3, development, library ] [ Propose Tags ] [ Report a vulnerability ]

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.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.2.1.0
Dependencies base (>=4.8 && <4.17), bytestring (>=0.10), directory (<1.4), fail (>=4.9 && <4.10), filepath (>=1.4), ghc (>=7.10 && <9.3), semigroups (>=0.18 && <0.19), serialise (>=0.2 && <0.3), text (>=1.2 && <1.3) [details]
Tested with ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.3, ghc ==8.10.4, ghc ==9.0.1, ghc ==9.2.1
License BSD-3-Clause
Copyright (c) 2017 Ben Gamari
Author Ben Gamari
Maintainer ben@well-typed.com
Category Development
Source repo head: git clone https://github.com/bgamari/ghc-dump
Uploaded by BenGamari at 2022-04-13T17:30:14Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1688 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-04-13 [all 1 reports]