úÎwJpÜh      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgNonehA version of catchJust from Control.Exception.Base, except for any instance of i.jhPredicate to select exceptionsComputation to runHandlerklmnopjhklmnopjhklmnopNone-BE8@An enumeration of the different types that JSON values may take.JThe type of error specifics which never involve custom validation errors.Detailed information in the case where a value could be parsed as JSON, but a value of the required type could not be constructed from it, for some reason. An error arising inside a q instance. Expected type, actual valueGThe type of parse errors which never involve custom validation errors.CA value indicating that the JSON could not be decoded successfully.śIndicates a decoding error; the input was parsed as JSON successfully, but a value of the required type could not be constructed, perhaps because of a missing key or type mismatch.oIndicates a syntax error in the JSON string. Unfortunately, in this case, Aeson's errors are not very helpful.ĂA piece of a path leading to a specific part of the JSON data. Internally, a list of these is maintained as the parser traverses the JSON data. This list is included in the error if one occurs.Data used internally by the  type.AThe type of parsers which never produce custom validation errors. This is the standard version of  over the r! Monad, for running pure parsers.‰The type of parsers: things which consume JSON values and produce either detailed errors or successfully parsed values (of other types).The err˛ type parameter is for custom validation errors; for parsers that don't produce any custom validation errors, I recommend you just stick a type variable in for full generality: ^ asTuple :: Parse e (Int, Int) asTuple = (,) <$> nth 0 asIntegral <*> nth 1 asIntegral The mb parameter allows you to run the parser within an abitrary underlying Monad. You may want to use H in most cases instead, and all functions in this module work on either.!@Transform the error of a parser according to the given function."An infix version of !.%Like &6 but runs the parser on an arbitrary underlying Monad.&Run a parser with a lazy s‹ containing JSON data. Note that the normal caveat applies: the JSON supplied must contain either an object or an array for this to work.'Like (6 but runs the parser on an arbitrary underlying Monad.(Run a parser with a strict t‹ containing JSON data. Note that the normal caveat applies: the JSON supplied must contain either an object or an array for this to work.)Like *6 but runs the parser on an arbitrary underlying Monad.*$Run a parser with a pre-parsed JSON u.+(This function is useful when you have a  err a) and you want to obtain an instance for q a. Simply define: 8 parseJSON = toAesonParser showMyCustomError myParser ,§Take a parser which never produces custom validation errors and turn it into an Aeson parser. Note that in this case, there is no need to provide a display function.-–Create a parser for any type, using its FromJSON instance. Generally, you should prefer to write parsers using the other functions in this module; F, =r, etc, since they will usually generate better error messages. However this function is also useful occasionally.1Turn a  into a human-readable list of vU values. They will be in a sensible order. For example, you can feed the result to  mapM putStrLn, or unlines.2 A version of 1< for parsers which do not produce custom validation errors.5 A version of 4< for parsers which do not produce custom validation errors.6Get the type of a JSON value.9#Lift any parsing function into the  type.:‹Aborts parsing, due to an error in the structure of the JSON - that is, any error other than the JSON not actually being parseable into a u.<Parse a single JSON string as v.= Parse a single JSON string as a w.> Parse a single JSON number as a x.?"Parse a single JSON number as any y type.@"Parse a single JSON number as any z type.A!Parse a single JSON boolean as a {.BParse a JSON object, as an |$. You should prefer functions like OI where possible, since they will usually generate better error messages.CParse a JSON array, as an }$. You should prefer functions like NI where possible, since they will usually generate better error messages.DnParse a single JSON null value. Useful if you want to throw an error in the case where something is not null.E9Given a parser, transform it into a parser which returns Nothing when supplied with a JSON nulle, and otherwise, attempts to parse with the original parser; if this succeeds, the result becomes a Just value.FBTake the value corresponding to a given key in the current object.G…Take the value corresponding to a given key in the current object, or if no property exists with that key, use the supplied default.H|Take the value corresponding to a given key in the current object, or if no property exists with that key, return Nothing .J(Take the nth value of the current array.KjTake the nth value of the current array, or if no value exists with that index, use the supplied default.L`Take the nth value of the current array, or if no value exists with that index, return Nothing.NYAttempt to parse each value in the array with the given parser, and collect the results.OcAttempt to parse each property value in the object with the given parser, and collect the results.PĄAttempt to parse each property in the object: parse the key with the given validation function, parse the value with the given parser, and collect the results.QŃLifts a function attempting to validate an arbitrary JSON value into a parser. You should only use this if absolutely necessary; the other functions in this module will generally give better error reporting.aPrefer to use functions like F or OJ to this one where possible, as they will generate better error messages.bPrefer to use functions like F or OJ to this one where possible, as they will generate better error messages.cPrefer to use functions like J or NJ to this one where possible, as they will generate better error messages.dPrefer to use functions like J or NJ to this one where possible, as they will generate better error messages.e Throw a custom validation error.h  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgg  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefhg !"#$%&'()*+,-./ 0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefT  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgNoneN !"%&'()*+,-123456<=>?@ABCDEFGHJKLNOPUVWXYZ[\]^_`abcdeN!"<=>?@ADBCEFGHJKLNOPVXZ\^`bdeUWY[]_ac&(*%') 12345+,-6~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}{~}u€‚ƒ„…†‡ˆ‰„Š‹„ŒŽu‘u’“aeson-better-errors-0.9.0 Data.Aeson.BetterErrors.InternalData.Aeson.BetterErrors.UtilsData.Aeson.BetterErrorsJSONTypeTyNullTyBoolTyNumberTyStringTyArrayTyObjectErrorSpecifics'ErrorSpecifics CustomError FromAesonExpectedIntegral WrongType OutOfBounds KeyMissing ParseError' ParseError BadSchema InvalidJSON PathPiece ArrayIndex ObjectKey ParseReaderrdrPathrdrValueParse'ParseParseT runParseTrunParse mapParseTmapError.! runParserT runParserparseMparse parseStrictM parseStrict parseValueM parseValue toAesonParsertoAesonParser'fromAesonParser appendPathsetValuedisplayJSONType displayError displayError' displayPathdisplaySpecificsdisplaySpecifics' jsonTypeOf liftParseT liftParseM liftParse badSchemaasasTextasString asScientific asIntegral asRealFloatasBoolasObjectasArrayasNullperhapskey keyOrDefaultkeyMaykey'nth nthOrDefaultnthMaynth' eachInArray eachInObjecteachInObjectWithKey withValue liftEitherwithMwith withTextMwithText withStringM withStringwithScientificMwithScientific withIntegralM withIntegralwithRealFloatM withRealFloat withBoolMwithBool withObjectM withObject withArrayM withArraythrowCustomError liftCustomT$fMonadTransParseT catchJust mtl-2.2.1Control.Monad.Error.Class MonadErrortshowpatNull patString patNumberpatBool patObjectpatArray aeson-0.9.0.1Data.Aeson.Types.ClassFromJSONtransformers-0.4.3.0Data.Functor.IdentityIdentitybytestring-0.10.4.0Data.ByteString.Lazy.Internal ByteStringData.ByteString.InternalData.Aeson.Types.InternalValue text-1.2.1.1Data.Text.InternalTextbaseGHC.BaseStringscientific-0.3.3.8Data.Scientific ScientificGHC.RealIntegral GHC.Float RealFloatghc-prim GHC.TypesBoolObjectArray