mgsloan / store

Fast binary serialization in Haskell
MIT License
109 stars 35 forks source link

Add Store instance for Natural. #155

Closed patrickt closed 3 years ago

patrickt commented 3 years ago

This piggybacks off the instance for Integer.

Fixes #154.

mgsloan commented 3 years ago

Thanks! I updated it to throw PeekException instead of ArithException if the decoded Integer is negative: https://github.com/mgsloan/store/commit/6f88193d13773cf2a0d70fad0e0e4c0d452f752f