Skip to content

Commit

Permalink
Directories hlint: move filter right of bind
Browse files Browse the repository at this point in the history
  • Loading branch information
juhp committed Dec 17, 2023
1 parent 3ecdeb3 commit 7d62878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directories.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ listPlatforms msystem = do

listCurrentDirectory :: IO [FilePath]
listCurrentDirectory =
filter (\d -> head d /= '.') <$> listDirectory "." >>= filterM doesDirectoryExist
listDirectory "." >>= filterM doesDirectoryExist . filter (\d -> head d /= '.')

Check warning on line 86 in src/Directories.hs

View workflow job for this annotation

GitHub Actions / Haskell GHC 9.8

In the use of ‘head’

#if !MIN_VERSION_simple_cmd(0,2,0)
warning :: String -> IO ()
Expand Down

0 comments on commit 7d62878

Please sign in to comment.