I take it there is no way to send
Bytes through a port:
38| port sendBytes : Bytes.Bytes -> Cmd msg ^^^^^^^^^ I cannot handle that. The types that CAN flow in and out of Elm include: Ints, Floats, Bools, Strings, Maybes, Lists, Arrays, tuples, records, and JSON values.
These functions could be added to
-- In Json.Decode bytes : Decoder Bytes -- In Json.Encode bytes : Bytes -> Value
They would map onto the underlying
ArrayBuffer on the JS side.
Can anyone see reasons why allowing this would be a bad idea? Would this be a worthwhile addition to the platform?