Safe Haskell | Ignore |
---|---|
Language | Haskell2010 |
Defines diagnostic codes for the diagnostics emitted by GHC.
A diagnostic code is a numeric unique identifier for a diagnostic. See Note [Diagnostic codes].
Synopsis
- constructorCode :: (Generic diag, GDiagnosticCode (Rep diag)) => diag -> Maybe DiagnosticCode
Documentation
constructorCode :: (Generic diag, GDiagnosticCode (Rep diag)) => diag -> Maybe DiagnosticCode Source #
This function obtain a diagnostic code by looking up the constructor
name using generics, and using the GhcDiagnosticCode
type family.