-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I want to encode and decode values of type Ratio
. It is not supported yet. My offer is to encode and decode the same way as Aeson:
λ encode (3 % 5 ∷ Ratio Int)
"{\"numerator\":3,\"denominator\":5}"
My case specifically is related to argonaut-aeson-generic
and purescript-bridge
, so it is important to me that the encoding matches the Haskell side of my code. Since PureScript does not support orphan instances, I have no other way of making stuff work.
I can write a patch in no time.
peterbecich
Metadata
Metadata
Assignees
Labels
No labels