fsprojects / Fleece

Json mapper for F#
http://fsprojects.github.io/Fleece
Apache License 2.0
199 stars 31 forks source link

Add overloads for UoMized types #131

Open gusty opened 2 years ago

gusty commented 2 years ago

We can add overloads for all numeric types supporting UoMs, they will have to be disambiguated from its non UoMized counterparts by using a different default level.

This makes sense as there's no other way to get default behavior for those types that are defined in FSharp.Core while ad-hoc defined types (refined types) with UoMs are used defined, so the user should be responsible of adding the required codecs is default codecs are desired.