File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
{-# LANGUAGE GADTs #-}
7
7
{-# LANGUAGE LambdaCase #-}
8
8
{-# LANGUAGE MultiParamTypeClasses #-}
9
- {-# LANGUAGE PatternSynonyms #-}
10
9
{-# LANGUAGE PolyKinds #-}
11
10
{-# LANGUAGE RankNTypes #-}
12
11
{-# LANGUAGE ScopedTypeVariables #-}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ mapIntMapPatchWithKey f (PatchIntMap m) = PatchIntMap $ IntMap.mapWithKey (\ k m
59
59
-- | Map an effectful function @Int -> a -> f b@ over all @a@s in the given @'PatchIntMap' a@
60
60
-- (that is, all inserts/updates), producing a @f (PatchIntMap b)@.
61
61
traverseIntMapPatchWithKey :: Applicative f => (Int -> a -> f b ) -> PatchIntMap a -> f (PatchIntMap b )
62
- traverseIntMapPatchWithKey f (PatchIntMap m) = PatchIntMap <$> IntMap. traverseWithKey (\ k mv -> traverse (f k) mv ) m
62
+ traverseIntMapPatchWithKey f (PatchIntMap m) = PatchIntMap <$> IntMap. traverseWithKey (traverse . f ) m
63
63
64
64
-- | Extract all @a@s inserted/updated by the given @'PatchIntMap' a@.
65
65
patchIntMapNewElements :: PatchIntMap a -> [a ]
Original file line number Diff line number Diff line change 1
1
module Main where
2
2
3
3
import Control.Monad
4
- import Language.Haskell.HLint3 (hlint )
4
+ import Language.Haskell.HLint (hlint )
5
5
import System.Directory
6
6
import System.Exit (exitFailure , exitSuccess )
7
7
import System.FilePath
@@ -23,6 +23,7 @@ main = do
23
23
, " --ignore=Reduce duplication"
24
24
, " --cpp-define=USE_TEMPLATE_HASKELL"
25
25
, " --ignore=Use tuple-section"
26
+ , " --ignore=Unused LANGUAGE pragma" -- hlint3 falsely believes that TypeOperators is not needed
26
27
]
27
28
recurseInto = and <$> sequence
28
29
[ fileType ==? Directory
You can’t perform that action at this time.
0 commit comments