canonical-json-0.6.0.1: Canonical JSON for signing and hashing JSON values
Copyright (c) Edsko de Vries Duncan Coutts 2015
Safe Haskell None
Language Haskell2010

Text.JSON.Canonical.Class

Description

Type classes and utilities for converting to and from JSValue .

Synopsis

Type classes

class ( Applicative m, Monad m) => ReportSchemaErrors m where Source #

Monads in which we can report schema errors

Utility

fromJSField :: ( ReportSchemaErrors m, FromJSON m a) => JSValue -> JSString -> m a Source #

Extract a field from a JSON object