|
|
|
|
|
by bos
4087 days ago
|
|
I know nothing about the Pusher protocol, but the standard approach to boilerplate encoding/decoding problems these days is to use GHC.Generics. It doesn't always fit (typically when your data structures don't resemble the wire encoding), but it kills all the boilerplate when it does. Since you say that you can magically get away without boilerplate in Ruby in this case, I would expect that the Generics approach will give exactly the same result. |
|
Here's a Pusher message.
Here's the corresponding Haskell.