Skip to content

Commit d5f41b6

Browse files
authored
Merge pull request #545 from bos/hlint
Upgrade to hlint 2.0.5
2 parents 1cf3edc + 0d742ec commit d5f41b6

File tree

13 files changed

+14
-17
lines changed

13 files changed

+14
-17
lines changed

Data/Aeson/Encoding/Builder.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE BangPatterns #-}
22
{-# LANGUAGE CPP #-}
3-
{-# LANGUAGE OverloadedStrings #-}
43

54
-- |
65
-- Module: Data.Aeson.Encoding.Builder

Data/Aeson/Parser.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE OverloadedStrings #-}
2-
31
-- |
42
-- Module: Data.Aeson.Parser
53
-- Copyright: (c) 2012-2016 Bryan O'Sullivan

Data/Aeson/Types/FromJSON.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ instance (FromJSONKey k, Ord k) => FromJSON1 (M.Map k) where
15391539
FromJSONKeyTextParser f -> withObject "Map k v" $
15401540
H.foldrWithKey (\k v m -> M.insert <$> f k <?> Key k <*> p v <?> Key k <*> m) (pure M.empty)
15411541
FromJSONKeyValue f -> withArray "Map k v" $ \arr ->
1542-
M.fromList <$> (Tr.sequence .
1543-
zipWith (parseIndexedJSONPair f p) [0..] . V.toList $ arr)
1542+
fmap M.fromList . Tr.sequence .
1543+
zipWith (parseIndexedJSONPair f p) [0..] . V.toList $ arr
15441544
{-# INLINE liftParseJSON #-}
15451545

15461546
instance (FromJSONKey k, Ord k, FromJSON v) => FromJSON (M.Map k v) where
@@ -1619,8 +1619,8 @@ instance (FromJSONKey k, Eq k, Hashable k) => FromJSON1 (H.HashMap k) where
16191619
FromJSONKeyTextParser f -> withObject "HashMap k v" $
16201620
H.foldrWithKey (\k v m -> H.insert <$> f k <?> Key k <*> p v <?> Key k <*> m) (pure H.empty)
16211621
FromJSONKeyValue f -> withArray "Map k v" $ \arr ->
1622-
H.fromList <$> (Tr.sequence .
1623-
zipWith (parseIndexedJSONPair f p) [0..] . V.toList $ arr)
1622+
fmap H.fromList . Tr.sequence .
1623+
zipWith (parseIndexedJSONPair f p) [0..] . V.toList $ arr
16241624
where
16251625
uc :: Parser (H.HashMap Text v) -> Parser (H.HashMap k v)
16261626
uc = unsafeCoerce

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
lint:
2-
hlint --cpp-include include/ --cpp-file .stack-work/dist/*/*Cabal-*/build/autogen/cabal_macros.h .
2+
hlint --cpp-include include/ --cpp-file .stack-work/dist/*/*Cabal-*/build/autogen/cabal_macros.h Data/ attoparsec-iso8601/ benchmarks/ examples/ ffi/ pure/ tests/

benchmarks/Options.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Options where
1+
module Options (opts) where
22

33
import Prelude ()
44
import Prelude.Compat

tests/DataFamilies/Encoders.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{-# LANGUAGE GADTs #-}
33
{-# LANGUAGE TemplateHaskell #-}
44

5-
module DataFamilies.Encoders where
5+
module DataFamilies.Encoders (module DataFamilies.Encoders) where
66

77
import Prelude ()
88
import Prelude.Compat

tests/DataFamilies/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{-# LANGUAGE TemplateHaskell #-}
99
{-# LANGUAGE TypeFamilies #-}
1010

11-
module DataFamilies.Types where
11+
module DataFamilies.Types (module DataFamilies.Types) where
1212

1313
import Prelude ()
1414
import Prelude.Compat

tests/Encoders.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{-# LANGUAGE GADTs #-}
33
{-# LANGUAGE TemplateHaskell #-}
44

5-
module Encoders where
5+
module Encoders (module Encoders) where
66

77
import Prelude ()
88
import Prelude.Compat

tests/JSONTestSuite/parsers/test_haskell-aeson/src/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{-# LANGUAGE ScopedTypeVariables #-}
22

3-
module Main where
3+
module Main (main) where
44

55
import qualified Data.Aeson as Aeson
66
import qualified Data.ByteString as Bytes

tests/Options.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Options where
1+
module Options (module Options) where
22

33
import Prelude ()
44
import Prelude.Compat

0 commit comments

Comments
 (0)