behaviour change in getDirectoryContents in GHC 7.2?
wren ng thornton
wren at freegeek.org
Tue Nov 8 23:42:42 CET 2011
On 11/8/11 6:04 AM, Simon Marlow wrote:
> I really think we should provide the native APIs. The problem is that
> the System.Posix.Directory API is all in terms of FilePath (=String),
> and if we gave that a different meaning from the System.Directory
> FilePaths then confusion would ensue. So perhaps we need to add another
> API to System.Posix with filesystem operations in terms of ByteString,
> and similarly for Win32.
+1.
It'd be nice to have an abstract FilePath. But until that happens, it's
important to distinguish the automagic type from the raw type. H98's
FilePath=String vs ByteString seems a good way to do that.
--
Live well,
~wren
More information about the Glasgow-haskell-users
mailing list