Haskell Platform Proposal: add the 'aeson' library

Bardur Arantsson spam at scientician.net
Fri Oct 11 23:15:04 UTC 2013


On 2013-09-18 13:26, Thomas Schilling wrote:
> I'm also +1, though I'd strongly prefer that the instance for
> ByteString gets dropped before inclusion.
> 

> The "don't do that" approach is not very Haskelly.  A Char8 ByteString
> is the same type as a Word8 ByteString, so while you could argue that
> Char8 is implicitly ASCII, the instance couldn't distinguish it from
> Word8 ByteStrings where this doesn't make sense. Since JSON doesn't
> have a standard way of encoding binary data
> (utf8/base64/base64url/...), external JSON API often may use their own
> convention, so it's best to require users to be explicit about
> semantics.

+1 with removal of BS instance, -0 otherwise.

(For all the reasons stated in this sub-thread.)





More information about the Libraries mailing list