| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Internal.FixWarnings
Synopsis
- fixWarning :: ModuleFile -> WarningsWithModDate -> IO WarningsWithModDate
- fixRedundancyWarning :: Int -> RedundancyWarn -> [ByteString] -> Maybe [ByteString]
- data RedundancyWarn
Documentation
fixWarning :: ModuleFile -> WarningsWithModDate -> IO WarningsWithModDate Source #
Fixes applicable warning
fixRedundancyWarning :: Int -> RedundancyWarn -> [ByteString] -> Maybe [ByteString] Source #
Attempt to fix redundant import warning.
Returns Nothing if incapable of fixing.
data RedundancyWarn Source #
Redundant import warnings
Constructors
| WholeModule | |
| IndividualThings [String] |
Instances
| Show RedundancyWarn Source # | |
Defined in Internal.FixWarnings Methods showsPrec :: Int -> RedundancyWarn -> ShowS # show :: RedundancyWarn -> String # showList :: [RedundancyWarn] -> ShowS # | |