@hackage / ghc-srcspan-plugin

Generic GHC Plugin for annotating Haskell code with source location data.

Latest0.2.2.1

About

Metadata

  • Last updated , by EricSeidel
  • License BSD-3-Clause
  • Maintained by: eric@seidel.io

  • Lottery factor: 0

Links

Installation

Readme

This package provides a generic Core-to-Core pass for annotating Haskell expressions with the original source locations, making them available at runtime.

You can use it to build a GHC Plugin tailored to your own library by providing a predicate to select interesting expressions for annotation and a function to annotate the expressions.