msgpack / msgpack-haskell

Haskell implementation of MessagePack / msgpack.org[Haskell]
http://hackage.haskell.org/package/msgpack
138 stars 80 forks source link

Add support for Integer of MessagePack class #86

Open evan0greenup opened 11 months ago

evan0greenup commented 11 months ago

Currently, Integer is not supported by msgpack-haskell. Integer is a arbitrary precision integer type for Haskell.

int in python is also arbitrary.

It would be nice to add support for Integer in class MessagePack.

The behavior can be same as Python, if the value is under the permitted range, the encode the value, otherwise raise an error.