Skip to content

Commit 767efff

Browse files
committed
Cleanup directory compat
1 parent 3a9830b commit 767efff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cabal/Distribution/Simple/Configure.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ import Distribution.Compat.Exception ( catchExit, catchIO )
142142

143143

144144
#if !MIN_VERSION_directory(1,2,5)
145-
import System.Directory (getDirectoryContents)
145+
import qualified System.Directory as Dir (getDirectoryContents)
146146
listDirectory :: FilePath -> IO [FilePath]
147147
listDirectory path =
148-
(filter f) <$> (getDirectoryContents path)
148+
filter f <$> Dir.getDirectoryContents path
149149
where f filename = filename /= "." && filename /= ".."
150150
#else
151151
import System.Directory (listDirectory)

0 commit comments

Comments
 (0)