Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Data.Schematic.JsonSchema
module Data.Schematic.Helpers
module Data.Schematic.Lens
module Data.Schematic.Migration
module Data.Schematic.Schema
decodeAndValidateJson :: forall schema. (FromJSON (JsonRepr schema), TopLevel schema, SingI schema) => ByteString -> ParseResult (JsonRepr schema) Source #
parseAndValidateJson :: forall schema. (FromJSON (JsonRepr schema), TopLevel schema, SingI schema) => Value -> ParseResult (JsonRepr schema) Source #
parseAndValidateJsonBy :: (FromJSON (JsonRepr schema), TopLevel schema, SingI schema) => proxy schema -> Value -> ParseResult (JsonRepr schema) Source #
parseAndValidateTopVersionJson :: forall proxy (v :: Versioned). SingI (TopVersion (AllVersions v)) => proxy v -> Value -> ParseResult (JsonRepr (TopVersion (AllVersions v))) Source #
parseAndValidateWithMList :: Monad m => MList m revisions -> Value -> m (ParseResult (JsonRepr (Head revisions))) Source #
decodeAndValidateVersionedWithMList :: Monad m => proxy versioned -> MList m (MapSnd (AllVersions versioned)) -> ByteString -> m (ParseResult (JsonRepr (Head (MapSnd (AllVersions versioned))))) Source #
decodeAndValidateVersionedWithPureMList :: proxy versioned -> MList Identity (MapSnd (AllVersions versioned)) -> ByteString -> ParseResult (JsonRepr (Head (MapSnd (AllVersions versioned)))) Source #
isValid :: ParseResult a -> Bool Source #
isDecodingError :: ParseResult a -> Bool Source #
isValidationError :: ParseResult a -> Bool Source #
data ParseResult a Source #
Instances
withRepr :: Constructor a Source #
field :: forall fn. KnownSymbol fn => FieldConstructor fn Source #