Moduleghc-9.10.3GHC2021
GHC.HsToCore.Pmc.Utils
Utility module for the pattern-match coverage checker.
- 11 values
- Packageghc-9.10.3
- Exports11
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceUtils.hs
Generate a fresh Id of a given type
All warning flags that need to run the pattern match checker.
Check whether the redundancy checker should run (redundancy only)
Check whether the exhaustiveness checker should run (exhaustiveness only)
Check whether unnecessary bangs should be warned about
Denotes whether an exhaustiveness check is supported, and if so, via which WarningFlag it's controlled. Returns Nothing if check is not supported.
Check whether any part of pattern match checking is enabled for this HsMatchContext (does not matter whether it is the redundancy check or the exhaustiveness check).
Check whether exhaustivity checks are enabled for this HsMatchContext,
when dealing with a single pattern (using the matchSinglePatVar function).
Return True when any of the pattern match warnings (allPmCheckWarnings) are enabled, in which case we need to run the pattern match checker.