ghc-compat-plugin-0.1.0.1: Eases support for multiple GHC versions
Copyright2026 Greg Pfeil
LicenseAGPL-3.0-only WITH Universal-FOSS-exception-1.0 OR LicenseRef-commercial
Safe HaskellTrustworthy
LanguageHaskell98

GhcCompat

Description

The implementation of the plugin, but this module is only loaded on GHC 7.10+ currently.

Synopsis

Documentation

plugin :: Plugin Source #

The entry-point for the GHC plugin. This is used by passing -fplugin=GhcCompat to GHC.

data Opts Source #

Options support by the plugin. These can be specified with the -fplugin-opt GHC option.

>>> defaultOpts <$> readVersion "7.10.1"
Just (Opts {minVersion = Version {versionBranch = [7,10,1], versionTags = []}, reportIncompatibleExtensions = Just Warn})

Constructors

Opts 

Fields

data ReportLevel Source #

This mirrors the levels provided by GHC’s warning flags. Correspondingly, we use the lowercase forms for the plugin opts instead of the capitalized ones.

Constructors

Warn 
Error