Closed copumpkin closed 10 years ago
Seems unfortunate to have to decode into Text only to encode again... this should work for now but I don't really like it. Also, why do we attempt to decode JSON and then return the input if it fails?
Gah, forgot github pull requests are mutable. Didn't mean to include the other commit in this, but it might be okay. Let me know if you want me to split them up.
Na, together is fine. Changes look good, trying locally before merging. Thanks!
As for the decode json failing and return the input, are you referring to decodeJson in Pubnub.hs? I don't remember why that is like that, and good chance it was a spot I meant to go back and add error handling but forgot :).
Thanks!
...doesn't have To/FromJSON instances for ByteStrings anymore.