Paracharacter Command-Line Arguments Like ByteString

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.

+7
haskell bytestring
source share

No one has answered this question yet.

See related questions:

32
What is Python bytestring?
sixteen
Many String Types (ByteString)
thirteen
How to convert an integer to a byte string in Haskell
12
Efficient Haskell Bit Streams
7
Is there a parametric version of the lazy `ByteString`?
6
Using Haskell Parsec to parse a byte string
4
String & # 8594; ByteString and reverse
4
Argument arguments parse comand
2
ByteString Bar Graph
0
Switch to ByteStrings

All Articles