[Haskell-cafe] unexpected behavior from filterM doesFileExist =<< getDirectoryContents

Thomas Hartman tphyahoo at gmail.com
Sun Jan 10 00:24:03 EST 2010


Can somebody explain this?

> getDirectoryContents inD

["..","#sanity.txt#",".","sanity.txt","etc.txt","patchTagDir.txt","jail.txt","notjail.txt","alldata.txt","allobjs.txt","namesNSizes.txt"]

> filterM doesFileExist =<< getDirectoryContents inD

> ["sanity.txt"]


More information about the Haskell-Cafe mailing list