Path {Abs|Rel} {Dir|File} type question

Hello, List! There is a library https://hackage.haskell.org/package/path-0.6.1 of Chris Done from FPCOMPLETE. `Path` - to be safe - can be constructed only with parsing (with TH or directly). OK. But the `Path` has different representation on Windows and POSIX which seems that no way to use both on the same platform (source of path can be network peer which has another platform). Does anyone use this library and if does - how do you workaround this? === Best regards, Paul

Hi Paul, You wrote:
[In the path library] the `Path` has different representation on Windows and POSIX which seems that no way to use both on the same platform
You are right, the path library does not yet support that. This issue will fix it: https://github.com/commercialhaskell/path/issues/82 In the meantime, use the standard filepath library, which supports paths from other platforms. Regards, Yitz

Hmm, OK. Thank you, Yitzchak! IMHO it will be good to have like in Python: all kind of paths (NT, POSIX, etc) available as well as local path (local platform dependent)...
Hi Paul,
You wrote:
[In the path library] the `Path` has different representation on Windows and POSIX which seems that no way to use both on the same platform
You are right, the path library does not yet support that. This issue will fix it:
https://github.com/commercialhaskell/path/issues/82
In the meantime, use the standard filepath library, which supports paths from other platforms.
Regards, Yitz _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (2)
-
Baa
-
Yitzchak Gale