safe-json
safe-json copied to clipboard
Wrap Data.Aeson.Value in a newtype SafeValue
https://github.com/Vlix/safe-json/issues/20
This isn't complete but I wanted to make sure it is going in the right direction before completing it. Things to note:
-
safeTo
creates aSafeValue
. I wasn't sure ifsafeFrom
should takeValue
orSafeValue
. - I think the
SafeValue
constructor should not be exported. Just the type and theunSafeValue
field.