Abstract FilePath Proposal

Antonio Nikishaev me at lelf.lu
Sun Jun 28 14:36:51 UTC 2015


Brandon Allbery <allbery.b at gmail.com> writes:

> On Sat, Jun 27, 2015 at 4:50 PM, Yitzchak Gale <gale at sefer.org> wrote:
>
>     On Mac OS X, it's normalized Unicode. The important
>     
>     point is *normalized* - if you create a FilePath from two
>     different Unicode strings that have the same normalized
>     form, the result FilePaths must be equal on Mac OS X.
>
> This is only true for higher level OS X APIs. ghc normally operates in
> the BSD layer, which mostly follows POSIX semantics; in particular,
> filesystem paths are bytestrings in the BSD layer, and only normalized
> in Cocoa APIs.

Normalization here is a property of the filesystem, not the API. So it
will be normalized in the POSIX layer too.








More information about the Libraries mailing list