| Copyright | 2026 Greg Pfeil |
|---|---|
| License | AGPL-3.0-only WITH Universal-FOSS-exception-1.0 OR LicenseRef-commercial |
| Safe Haskell | Trustworthy |
| Language | Haskell98 |
GhcCompat
Description
The implementation of the plugin, but this module is only loaded on GHC 7.10+ currently.
Synopsis
- plugin :: Plugin
- data Opts = Opts {}
- data ReportLevel
Documentation
The entry-point for the GHC plugin. This is used by passing
-fplugin=GhcCompat
to GHC.
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.