I'm new to Frege, although I know both Java and Haskell.
I'm porting some Haskell code that uses ByteString
, and I'm trying to figure out what to use in Frege. I assume I would want to use something whose underlying Java representation is byte[]
, but I'm not sure how Frege wraps that.
In particular, I looked through PreludeArrays.fr
, and I noticed that there's an instance of PrimitiveArrayElement
for every primitive Java type except byte
.
I feel like there's something obvious I'm missing. How do I go about dealing with binary data in Frege? Are there any examples of how to do so?