mutagen-0.1.0.0: Property-based testing framework for Haskell using type-preserving mutations.
Safe HaskellNone
LanguageHaskell2010

Test.Mutagen.Tracer.Plugin

Contents

Description

GHC source plugin that instruments Haskell code to include tracing calls.

You can enable this plugin in different ways:

  • Globally, by passing the -fplugin flag to GHC:
 -fplugin=Test.Mutagen.Tracer.Plugin
  • Per module, by adding the following pragma to the top of the module:
 {-# OPTIONS_GHC -fplugin=Test.Mutagen.Tracer.Plugin #-}
  • Per function, by adding the TRACE annotation pragma to the function (in addition to enabling the plugin globally or per-module):
 {-# ANN myFunction TRACE #-}
Synopsis

GHC Plugin

plugin :: Plugin Source #

Top-level plugin.