You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I see we didn't get an instance for any of ByteString types. Is there a reason for that? Would be good to know the details.
I would like to have instances for Char8 ByteStrings to avoid redundant conversions to other String-like types after reading from config.
Thanks!
The text was updated successfully, but these errors were encountered:
Note that bytestring doesn't provide separate types from its Char8 modules – therefore any instance must assume that a ByteString is just a binary blob. However there could be dedicated Decoders and Encoders for converting between Latin-1-encoded ByteStrings and the Dhall Text type.
I am trying to write Data.ByteString.ByteStringDecoder and wondering if I should add another constructors family for Expr data type or try to make Chunks type polymorphic over string-like type and use it in decoder. Or I am thinking in a wrong direction?
Decoders and Encoders for converting between Latin-1-encoded ByteStrings and the Dhall Text type
We probably wouldn't be able to add a dedicated constructor unless dhall-lang/dhall-lang#1179 were standardized
Instead, what you probably want to do is to have the Encoder/Decoder use the TextLit constructor along with some textual encoding of the bytes (e.g. base64 encoding or something similar)
From what I see we didn't get an instance for any of ByteString types. Is there a reason for that? Would be good to know the details.
I would like to have instances for Char8 ByteStrings to avoid redundant conversions to other String-like types after reading from config.
Thanks!
The text was updated successfully, but these errors were encountered: