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

2010-01-09 Thread Thomas Hartman
Thanks, that was it. Dud question. 2010/1/9 Brandon S. Allbery KF8NH : > On Jan 10, 2010, at 00:24 , Thomas Hartman wrote: >> >> Can somebody explain this? >> >>> getDirectoryContents inD >> >> ["..","#sanity >> .txt >> #",".","sanity >> .txt >> ","etc >> .txt >> ","patchTagDir >> .txt >> ","jail

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

2010-01-09 Thread Brandon S. Allbery KF8NH
On Jan 10, 2010, at 00:24 , Thomas Hartman wrote: 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 =<< getDirectoryCont

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

2010-01-09 Thread Thomas Hartman
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"] _