From cae155b095e5182cc1b342b21f7430e40afe7ba8 Mon Sep 17 00:00:00 2001 From: Christian Despres <50160106+despresc@users.noreply.github.com> Date: Sun, 13 Sep 2020 10:48:14 -0400 Subject: Fix hlint suggestions, update hlint.yaml (#6680) * Fix hlint suggestions, update hlint.yaml Most suggestions were redundant brackets. Some required LambdaCase. The .hlint.yaml file had a small typo, and didn't ignore camelCase suggestions in certain modules. --- test/Tests/Old.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/Tests/Old.hs') diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs index ba6947eda..fc5721edb 100644 --- a/test/Tests/Old.hs +++ b/test/Tests/Old.hs @@ -14,7 +14,6 @@ module Tests.Old (tests) where import Prelude import Data.Algorithm.Diff -import Prelude hiding (readFile) import Data.List (intercalate) import Data.Maybe (catMaybes) import System.Exit @@ -291,7 +290,7 @@ fb2WriterTest pandocPath title opts inputfile normfile = where formatXML xml = splitTags $ zip xml (drop 1 xml) splitTags [] = [] - splitTags [end] = fst end : snd end : [] + splitTags [end] = [fst end, snd end] splitTags (('>','<'):rest) = ">\n" ++ splitTags rest splitTags ((c,_):rest) = c : splitTags rest ignoreBinary = unlines . filter (not . startsWith "