[email protected]
[Top] [All Lists]

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

Subject: [Haskell-cafe] unexpected behavior from filterM doesFileExist =<< getDirectoryContents
From: Thomas Hartman
Date: Sat, 9 Jan 2010 23:24:03 -0600
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"]
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>