[commit: packages/filepath] RyanGlScott-patch-1, master: Ignore HLint hints in the generated tests (d32355a)

git at git.haskell.org git at git.haskell.org
Thu Sep 13 14:50:42 UTC 2018


Repository : ssh://git@git.haskell.org/filepath

On branches: RyanGlScott-patch-1,master
Link       : http://git.haskell.org/packages/filepath.git/commitdiff/d32355a94c84b4cfeda0e65cdb13d5a988249fbc

>---------------------------------------------------------------

commit d32355a94c84b4cfeda0e65cdb13d5a988249fbc
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Tue May 2 16:50:12 2017 +0100

    Ignore HLint hints in the generated tests


>---------------------------------------------------------------

d32355a94c84b4cfeda0e65cdb13d5a988249fbc
 Generate.hs      | 1 +
 tests/TestGen.hs | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Generate.hs b/Generate.hs
index 36e055c..7fb218e 100755
--- a/Generate.hs
+++ b/Generate.hs
@@ -20,6 +20,7 @@ main = do
         ,"import TestUtil"
         ,"import qualified System.FilePath.Windows as W"
         ,"import qualified System.FilePath.Posix as P"
+        ,"{-# ANN module \"HLint: ignore\" #-}"
         ,"tests :: [(String, Property)]"
         ,"tests ="] ++
         ["    " ++ c ++ "(" ++ show t1 ++ ", " ++ t2 ++ ")" | (c,(t1,t2)) <- zip ("[":repeat ",") tests] ++
diff --git a/tests/TestGen.hs b/tests/TestGen.hs
index 848ae5b..7bc914e 100755
--- a/tests/TestGen.hs
+++ b/tests/TestGen.hs
@@ -3,6 +3,7 @@ module TestGen(tests) where
 import TestUtil
 import qualified System.FilePath.Windows as W
 import qualified System.FilePath.Posix as P
+{-# ANN module "HLint: ignore" #-}
 tests :: [(String, Property)]
 tests =
     [("W.pathSeparator == '\\\\'", property $ W.pathSeparator == '\\')



More information about the ghc-commits mailing list