Is there a cross-platform way to parse program arguments into a ByteString list (instead of a String list, as in System.Environment.getArgs )?
I know System.Posix.Env.ByteString.getArgs from unix , but I would like to be able to run my program on Windows without cygwin. I also know Data.ByteString.Char8.pack , but it truncates characters to 8 bits, and I would like to be able to handle any Unicode character .
EDIT: My program is a simple cipher that contains key bits against message bits. For this reason, I would prefer to process the exact bits that were provided to the program, instead of translating them to UTF-8 and vice versa.
haskell bytestring
Jeremiah megel
source share