On Wed, Nov 9, 2011 at 08:04, Simon Marlow <marlo...@gmail.com> wrote: > Ok, I spent most of today adding ByteString alternatives for all of the > functions in System.Posix that use FilePath or environment strings. The > Haddocks for my augmented unix package are here: > > http://community.haskell.org/~simonmar/unix-with-bytestring-extras/index.html > > In particular, the module System.Posix.ByteString is the whole System.Posix > API but with ByteString FilePaths and environment strings: > > http://community.haskell.org/~simonmar/unix-with-bytestring-extras/System-Posix-ByteString.html
This looks lovely -- thank you. Once it's released, I'll port all my libraries over to using it. > It has one addition relative to System.Posix: > > getArgs :: IO [ByteString] Thank you very much! Several tools I use daily accept binary data as command-line options, and this will make it much easier to port them to Haskell in the future. > Let me know what you think. I suspect the main controversial aspect is that > I included > > type FilePath = ByteString > > which is a bit cute but might be confusing. Indeed, I was very confused when I saw that in the docs. If it's not too much trouble, could those functions accept/return ByteString directly? _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users