splint 2.0.0.4 → 2.0.0.5
raw patch · 3 files changed
+6/−4 lines, 3 files
Files
- README.markdown +2/−0
- source/library/Splint.hs +1/−3
- splint.cabal +3/−1
README.markdown view
@@ -3,6 +3,8 @@ [](https://github.com/tfausak/splint/actions/workflows/ci.yml) [](https://hackage.haskell.org/package/splint) +:warning: This package is not maintained anymore.+ Splint makes [HLint 3][] available as a [GHC source plugin][]. It is similar to [hlint-source-plugin][] by Ollie Charles, except that it doesn't have to re-parse the module in order to lint it.
source/library/Splint.hs view
@@ -1,7 +1,5 @@ module Splint where -import qualified Control.Concurrent as Concurrent-import qualified Control.Monad as Monad import qualified Data.Maybe as Maybe import qualified GHC.Data.Bag import qualified GHC.Driver.Config.Diagnostic@@ -33,7 +31,7 @@ dynFlags <- GHC.Plugins.getDynFlags let ghcMessageOpts = GHC.Driver.Config.Diagnostic.initPrintConfig dynFlags diagOpts = GHC.Driver.Config.Diagnostic.initDiagOpts dynFlags- Monad.void . GHC.Plugins.liftIO . Concurrent.forkIO $ do+ GHC.Plugins.liftIO $ do settings <- Settings.load commandLineOptions GHC.Driver.Errors.printOrThrowDiagnostics logger ghcMessageOpts diagOpts . GHC.Types.Error.mkMessages
splint.cabal view
@@ -1,8 +1,10 @@ cabal-version: 2.2 name: splint-version: 2.0.0.4+version: 2.0.0.5 synopsis: HLint as a GHC source plugin. description:+ Warning: This package is not maintained anymore.+ . Splint makes HLint available as a GHC source plugin. To use it, pass @-fplugin=Splint@ to GHC. Any options passed to Splint are passed through to HLint. For example you can use @-fplugin-opt=Splint:'--ignore=Use concatMap'@