[Haskell] System.FilePath survey

Wolfgang Jeltsch wolfgang at jeltsch.net
Fri Feb 3 13:22:05 EST 2006


Am Freitag, 3. Februar 2006 12:03 schrieb Krasimir Angelov:
> [...]

>     * Will you be happy with a library that represents the file path
> as String? The opposite is to use ADT for it. The disadvantage is that
> with the current IO library we should convert from ADT to String and
> back again each time when we have to do any IO. The ADT may have
> advantages for the internal library implementation.

I would very much prefer an ADT.  An ADT would describe the actual logical 
structure of a file path and this is something we should always try to 
achieve.

>     * Do you think that we have to use unboxed arrays of Word8/Word16
> for file path?

We have to be careful here.  As far as I know, file paths are lists of 
*characters* (i.e., strings) under Windows when using some new API but they 
are lists of *bytes* under POSIX.

> [...]

> Cheers,
>   Krasimir

Best wishes,
Wolfgang


More information about the Haskell mailing list