haskell / filepath

Haskell FilePath core library
BSD 3-Clause "New" or "Revised" License
66 stars 32 forks source link

interaction of OsPath with getEnv, GetOpt, optparse-applicative #221

Open amigalemming opened 10 months ago

amigalemming commented 10 months ago

Can you please clarify, how to transfer FilePaths from getEnv, GetOpt, optparse-applicative without the roundtrip via String?

hasufell commented 10 months ago

All those things need to be reimplemented: https://github.com/pcapriotti/optparse-applicative/issues/65#issuecomment-1742135907

hasufell commented 10 months ago

For getEnv we need:

But the latter doesn't exist in Win32 yet... so it has to be added there (probably along with GetEnvironmentStrings)