Provide a raw ByteString version of FilePath and environment APIs
The new module System.Posix.ByteString provides exactly the same API as System.Posix, except that: - There is a new type: RawFilePath = ByteString - All functions mentioning FilePath in the System.Posix API use RawFilePath in the System.Posix.ByteString API - RawFilePaths are not subject to Unicode locale encoding and decoding, unlike FilePaths. They are the exact bytes passed to and returned from the underlying POSIX API. - Similarly for functions that deal in environment strings (System.Posix.Env): these use untranslated ByteStrings in System.Posix.Environment - There is a new function System.Posix.ByteString.getArgs :: [ByteString] returning the raw untranslated arguments as passed to exec() when the program was started.
Showing
- System/Posix.hs 7 additions, 1 deletionSystem/Posix.hs
- System/Posix/ByteString.hs 69 additions, 0 deletionsSystem/Posix/ByteString.hs
- System/Posix/ByteString/FilePath.hsc 123 additions, 0 deletionsSystem/Posix/ByteString/FilePath.hsc
- System/Posix/Directory.hsc 6 additions, 53 deletionsSystem/Posix/Directory.hsc
- System/Posix/Directory/ByteString.hsc 155 additions, 0 deletionsSystem/Posix/Directory/ByteString.hsc
- System/Posix/Directory/Common.hsc 80 additions, 0 deletionsSystem/Posix/Directory/Common.hsc
- System/Posix/DynamicLinker.hsc 5 additions, 35 deletionsSystem/Posix/DynamicLinker.hsc
- System/Posix/DynamicLinker/ByteString.hsc 70 additions, 0 deletionsSystem/Posix/DynamicLinker/ByteString.hsc
- System/Posix/DynamicLinker/Common.hsc 90 additions, 0 deletionsSystem/Posix/DynamicLinker/Common.hsc
- System/Posix/DynamicLinker/Module.hsc 2 additions, 5 deletionsSystem/Posix/DynamicLinker/Module.hsc
- System/Posix/DynamicLinker/Module/ByteString.hsc 77 additions, 0 deletionsSystem/Posix/DynamicLinker/Module/ByteString.hsc
- System/Posix/DynamicLinker/Prim.hsc 1 addition, 1 deletionSystem/Posix/DynamicLinker/Prim.hsc
- System/Posix/Env/ByteString.hsc 165 additions, 0 deletionsSystem/Posix/Env/ByteString.hsc
- System/Posix/Files.hsc 9 additions, 328 deletionsSystem/Posix/Files.hsc
- System/Posix/Files/ByteString.hsc 382 additions, 0 deletionsSystem/Posix/Files/ByteString.hsc
- System/Posix/Files/Common.hsc 408 additions, 0 deletionsSystem/Posix/Files/Common.hsc
- System/Posix/IO.hsc 7 additions, 393 deletionsSystem/Posix/IO.hsc
- System/Posix/IO/ByteString.hsc 102 additions, 0 deletionsSystem/Posix/IO/ByteString.hsc
- System/Posix/IO/Common.hsc 465 additions, 0 deletionsSystem/Posix/IO/Common.hsc
- System/Posix/Process.hsc 3 additions, 331 deletionsSystem/Posix/Process.hsc
Loading
Please register or sign in to comment