Module
Codec.Json.Errors.PrimitiveJsonError
- Package
- purescript-json-codecs
- Repository
- jordanmartinez/purescript-json-codecs
Defines the handlers and other utilities for when you want
to inspect each error produced by the decoder.
This is as similar to JsonDecodeError
as one can get.
#printMissingField Source
printMissingField :: String -> String
#printMissingIndex Source
printMissingIndex :: Int -> String
#printTypeHint Source
printTypeHint :: TypeHint -> String
#PrimitiveJsonError Source
newtype PrimitiveJsonError
Constructors
PrimitiveJsonError (TreeError { hint :: TypeHint, path :: Array JsonOffset } { error :: JsonLeafError, path :: Array JsonOffset })
Instances
#runJsonDecoderPJE Source
runJsonDecoderPJE :: forall a. Json -> JsonDecoder PrimitiveJsonError Unit a -> Either PrimitiveJsonError a
#runJsonDecoderPJE' Source
runJsonDecoderPJE' :: forall a extra. extra -> Json -> JsonDecoder PrimitiveJsonError extra a -> Either PrimitiveJsonError a
#decodePJE Source
decodePJE :: forall a. Json -> JsonCodec PrimitiveJsonError Unit a -> Either PrimitiveJsonError a
#decodePJE' Source
decodePJE' :: forall a extra. extra -> Json -> JsonCodec PrimitiveJsonError extra a -> Either PrimitiveJsonError a
#pjeD Source
pjeD :: forall from to. JsonDecoder' PrimitiveJsonError Unit from to -> JsonDecoder' PrimitiveJsonError Unit from to
#pjeC Source
pjeC :: forall from to. JsonCodec' PrimitiveJsonError Unit from to -> JsonCodec' PrimitiveJsonError Unit from to
- Modules
- Codec.
Codec - Codec.
Decoder - Codec.
Decoder. Qualified - Codec.
Json. Bidirectional. Class - Codec.
Json. Bidirectional. Value - Codec.
Json. Errors. AnsiDodoError - Codec.
Json. Errors. DecodeMessages - Codec.
Json. Errors. NoError - Codec.
Json. Errors. PlainDodoError - Codec.
Json. Errors. PrimitiveJsonError - Codec.
Json. Errors. Tree - Codec.
Json. JsonCodec - Codec.
Json. JsonDecoder - Codec.
Json. Newtypes - Codec.
Json. Types - Codec.
Json. Unidirectional. Decode. Class - Codec.
Json. Unidirectional. Decode. Value - Codec.
Json. Unidirectional. Encode. Class - Codec.
Json. Unidirectional. Encode. Value - Data.
V. Semigroup. Qualified