These lines are ok according to previous versions of hlint but trigger
an error with version 1.8.43.
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
execMultiCall :: [([CurlOption], String)] -> IO [(CurlCode, String)]
execMultiCall ous = do
-- error buffers
- errorbufs <- mapM (\_ -> mallocErrorBuffer) ous
+ errorbufs <- mapM (const mallocErrorBuffer) ous
-- result buffers
outbufs <- mapM (\_ -> newIORef []) ous
-- handles
results <- mapM (\name -> Rapi.loadData name >>= writeData nlen name opts)
clusters
- unless (all id results) $ exitWith (ExitFailure 2)
+ unless (and results) $ exitWith (ExitFailure 2)