Skip to content

Commit 4e22e5a

Browse files
committed
Fix hlint
1 parent 70ef64c commit 4e22e5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/lib/Streamly/Test/Parser/Common.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ expectedResult moves inp = go 0 0 [] moves
6868
inpLen = length inp
6969

7070
slice off len = Prelude.take len . Prelude.drop off
71-
slice_ off = Prelude.drop off
71+
slice_ = Prelude.drop
7272

7373
-- i = Index of inp head
7474
-- j = Minimum index of inp head
@@ -105,7 +105,7 @@ expectedResultMany moves inp =
105105

106106
createPaths :: [a] -> [[a]]
107107
createPaths xs =
108-
Prelude.map (flip Prelude.take xs) [1..length xs]
108+
Prelude.map (`Prelude.take` xs) [1..length xs]
109109

110110
parserSanityTests :: String -> ([Move] -> SpecWith ()) -> SpecWith ()
111111
parserSanityTests desc testRunner =

0 commit comments

Comments
 (0)