Silence erroneous hlint warning
authorMichele Tartara <mtartara@google.com>
Fri, 21 Dec 2012 10:11:03 +0000 (10:11 +0000)
committerMichele Tartara <mtartara@google.com>
Fri, 21 Dec 2012 10:16:53 +0000 (11:16 +0100)
This patch adds an ignore for an hlint warning that wants camelcase to be used
in the name of a "case" test.
But if camelcase is used, it is not a valid test name anymore.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

htest/Test/Ganeti/Utils.hs

index cb357a1..23fe93b 100644 (file)
@@ -224,6 +224,8 @@ prop_rStripSpace (NonEmpty str) =
           ]
 
 #ifndef NO_REGEX_PCRE
+{-# ANN case_new_uuid "HLint: ignore Use camelCase" #-}
+
 -- | Tests that the newUUID function produces valid UUIDs.
 case_new_uuid :: Assertion
 case_new_uuid = do