Safe Haskell | None |
---|---|
Language | Haskell2010 |
Aeson bridge for MessagePack
Synopsis
- toAeson :: MonadValidate DecodeError m => Object -> m Value
- fromAeson :: MonadValidate DecodeError m => Value -> m Object
- viaFromJSON :: (MonadValidate DecodeError m, FromJSON a) => Object -> m a
Conversion functions
toAeson :: MonadValidate DecodeError m => Object -> m Value Source #
fromAeson :: MonadValidate DecodeError m => Value -> m Object Source #
viaFromJSON :: (MonadValidate DecodeError m, FromJSON a) => Object -> m a Source #
Helpers to piggyback off a JSON encoder / decoder when creating a MessagePack instance.
Not as efficient as a direct encoder.