[Git][ghc/ghc][master] Namespace the Hadrian linting rule for base

Marge Bot gitlab at gitlab.haskell.org
Thu Sep 24 17:17:52 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
007940d2 by Hécate at 2020-09-24T13:17:44-04:00
Namespace the Hadrian linting rule for base

- - - - -


1 changed file:

- hadrian/src/Rules/Lint.hs


Changes:

=====================================
hadrian/src/Rules/Lint.hs
=====================================
@@ -7,21 +7,21 @@ import Settings.Builders.Common
 import System.Directory (findExecutable)
 
 lintRules :: Rules ()
-lintRules = "lint" ~> lint
+lintRules = "lint:base" ~> lint base
 
-lint :: Action ()
-lint = do
+lint :: Action () -> Action ()
+lint lintAction = do
   isHlintPresent <- isJust <$> (liftIO $ findExecutable "hlint")
   if isHlintPresent
   then do
     putBuild "| Running the linter…"
-    lintBase
+    lintAction
     putSuccess "| Done."
   else
     putFailure "| Please make sure you have the `hlint` executable in your $PATH"
 
-lintBase :: Action ()
-lintBase = do
+base :: Action ()
+base = do
   topDir   <- topDirectory
   buildDir <- buildRoot
   let stage1Lib    = topDir </> buildDir </> "stage1/lib"



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/007940d2fa1ac4f8046989d4af1d088914612a78

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/007940d2fa1ac4f8046989d4af1d088914612a78
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200924/dbfc267f/attachment-0001.html>


More information about the ghc-commits mailing list