Adding System.FilePath

Ian Lynagh igloo at
Fri Mar 16 10:10:04 EDT 2007

On Fri, Mar 16, 2007 at 02:24:47PM +0100, Sven Panne wrote:
> So I propose a compromise, we don't really have to be better than most 
> languages/toolkits out there: Let's keep FilePath = String, but improve the 
> real culprit, i.e. CString and friends. Currently, peekCString{,Len}, 
> newCString{,Len} and withCString{,Len} simply use their "CA" ASCII 
> counterparts. If we put the above common logic into Foreign.C.String, we 
> could already achieve a lot.

I'm not clear on exactly what you're proposing: would

    getDirectoryContents "." >>= mapM_ removeFile

remove all the files in ".", regardless of what my locale is, my OS is,
etc? i.e. would this solve my problem in



More information about the Libraries mailing list