!]D      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~        Safe D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableSafeNaeson Transform a   into a ! while transforming the keys."aeson#Transform the keys and values of a !.#aesonTransform the keys of a !."# None$ None$n(c) 2012-2016 Bryan O'Sullivan (c) 2011, 2012 Bas Van Dijk (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableSafe -;=>?AFSTVaesonA type-level indicator that ToJSON1 or  FromJSON1 is being derived generically.aesonA type-level indicator that ToJSON or FromJSON is being derived generically. %&'()*+,-.D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNone16KQVv,aeson7Specifies how to encode constructors of a sum datatype.aeson9A constructor will be encoded to an object with a field 7 which specifies the constructor tag (modified by the  ). If the constructor is a record the encoded record fields will be unpacked into this object. So make sure that your record doesn't have a field with the same label as the . Otherwise the tag gets overwritten by the encoded value of that field! If the constructor is not a record the encoded constructor contents will be stored under the  field.aesonConstructor names won't be encoded. Instead only the contents of the constructor will be encoded as if the type had a single constructor. JSON encodings have to be disjoint for decoding to work properly.When decoding, constructors are tried in the order of definition. If some encodings overlap, the first one defined will succeed.Note:5 Nullary constructors are encoded as strings (using  r). Having a nullary constructor alongside a single field constructor that encodes to a string leads to ambiguity.Note: Only the last error is kept when decoding, so in the case of malformed JSON, only an error for the last constructor will be reported.aesonrA constructor will be encoded to an object with a single field named after the constructor tag (modified by the  9) which maps to the encoded contents of the constructor.aeson|A constructor will be encoded to a 2-element array where the first element is the tag of the constructor (modified by the  B) and the second element the encoded contents of the constructor. aesonEOptions that specify how to encode/decode your datatype to/from JSON.*Options can be set using record syntax on 5 with the fields below. aesonYFunction applied to field labels. Handy for removing common record prefixes for example. aeson]Function applied to constructor tags which could be handy for lower-casing them for example. aesonIf /& the constructors of a datatype, with allW nullary constructors, will be encoded to just a string with the constructor tag. If 0& the encoding will always follow the . aesonIf / record fields with a 16 value will be omitted from the resulting object. If 0< the resulting object will include those fields mapping to null.aeson7Specifies how to encode constructors of a sum datatype.aesonRHide the field name when a record constructor has only one field, like a newtype.aeson9Encode types with a single constructor as sums, so that   and  apply.aesonA key/value pair for an .aesonA newtype wrapper for 2Q that uses the same non-standard serialization format as Microsoft .NET, whose  Ghttps://msdn.microsoft.com/en-us/library/system.datetime(v=vs.110).aspxSystem.DateTimeD type is by default serialized to JSON as in the following example: /Date(1302547608878)/8The number represents milliseconds since the Unix epoch.aesonAcquire the underlying value.aeson,A JSON value represented as a Haskell value.aesonA JSON "array" (sequence).aeson A JSON "object" (key/value map).aesontA JSON parser. N.B. This might not fit your usual understanding of "parser". Instead you might like to think of Q as a "parse result", i.e. a parser to which the input has already been applied.3aesonSuccess continuation.4aesonFailure continuation.aesonThe result of running a ."aeson!The internal result of running a .&aesonCElements of a JSON path used to describe the location of an error.'aeson9JSON path element of a key into an object, "object.key".(aeson=JSON path element of an index into an array, "array[index]".)aesonThe empty array.5aesonDetermines if the  is an empty . Note that:  isEmptyArray ).*aesonThe empty object.+aesonRun a .,aesonRun a .-aesonRun a  with a 6 result type..aesonRun a  with an 7( result type. If the parse fails, the 8' payload will contain an error message./aeson"Annotate an error message with a  &http://goessner.net/articles/JsonPath/JSONPath error location.0aeson Create a  from a list of name/value Ks. If duplicate keys arise, earlier keys and their associated values win.1aeson!Add JSON Path context to a parserWhen parsing a complex structure, it helps to annotate (sub)parsers with context, so that if an error occurs, you can find its location. iwithObject "Person" $ \o -> Person <$> o .: "name" <?> Key "name" <*> o .: "age" <?> Key "age"/(Standard methods like '(.:)' already do this.)\With such annotations, if an error occurs, you will get a JSON Path location of that error. Since 0.102aeson If the inner Parser failed, modify the failure message using the provided function. This allows you to create more descriptive error messages. For example: pparseJSON (Object o) = modifyFailure ("Parsing of the Foo value failed: " ++) (Foo <$> o .: "someField") Since 0.6.2.03aeson-Throw a parser error with an additional path.4aesonLA handler function to handle previous errors and return to normal execution.5aesonDefault encoding  :   {   = id ,   = id ,   = True ,   = False ,  = 6 ,  = False ,  = False } 6aesonDefault   options: defaultTaggedObject =  { & = "tag" , & = "contents" } 7aesonConverts from CamelCase to another lower case, interspersing the character between all capital letters and their previous entries, except those capital letters that appear together, like API.(For use by Aeson template haskell calls. .camelTo '_' 'CamelCaseAPI' == "camel_case_api"8aesonBetter version of 7 . Example where it works better: ]camelTo '_' 'CamelAPICase' == "camel_apicase" camelTo2 '_' 'CamelAPICase' == "camel_api_case"8 ! "#$%&'()5*+,-./012345678D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneD 9aesonParse a top-level JSON value.The conversion of a parsed value to a Haskell value is deferred until the Haskell value is needed. This may improve performance if only a subset of the results of conversions are needed, but at a cost in thunk allocation.This function is an alias for ;r. In aeson 0.8 and earlier, it parsed only object or array types, in conformance with the now-obsolete RFC 4627.:aesonParse a top-level JSON value.This is a strict version of 9 which avoids building up thunks during parsing; it performs all conversions immediately. Prefer this version if most of the JSON data needs to be accessed.This function is an alias for <r. In aeson 0.8 and earlier, it parsed only object or array types, in conformance with the now-obsolete RFC 4627.;aeson*Parse any JSON value. You should usually 9h in preference to this function, as this function relaxes the object-or-array requirement of RFC 4627.In particular, be careful in using this function if you think your code might interoperate with Javascript. A nave Javascript library that parses JSON data using eval is vulnerable to attack unless the encoded data represents an object or an array. JSON implementations in other languages conform to that same restriction to preserve interoperability and security.<aesonStrict version of ; . See also :.=aesonParse a quoted JSON string.>aeson'Parse a string without a leading quote.Caeson[Parse a top-level JSON value followed by optional whitespace and end-of-input. See also: 9.Daeson[Parse a top-level JSON value followed by optional whitespace and end-of-input. See also: :.9aesonZThe only valid whitespace in a JSON document is space, newline, carriage return, and tab.EaesonParse a JSON number. 9:;<=>?@ABCDE 9C;=>E:D<?@ABD(c) 2012-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneF 9:;<=?@ABE 9;=E:<?@AB(c) 2015-2016 Bryan O'SullivanBSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneSFaeson<Like TimeOfDay, but using a fixed-width integer for seconds.FGHIJK(c) 2015-2016 Bryan O'SullivanBSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneV~:aesonParse a date of the form [+,-]YYYY-MM-DD.;aeson4Parse a two-digit integer (e.g. day of month, hour).<aesonParse a time of the form HH:MM[:SS[.SSS]].=aesonGParse a count of seconds, with the integer part being two digits long.>aesonParse a time zone, and return 1F if the offset from UTC is zero. (This makes some speedups possible.)?aeson#Parse a date and time, of the form YYYY-MM-DD HH:MM[:SS[.SSS]]$. The space may be replaced with a TT. The number of seconds is optional and may be followed by a fractional component.@aeson Behaves as A5, but converts any time zone offset into a UTC time.Aaeson5Parse a date with time zone info. Acceptable formats:YYYY-MM-DD HH:MM Z YYYY-MM-DD HH:MM:SS Z YYYY-MM-DD HH:MM:SS.SSS Z!The first space may instead be a T*, and the second space is optional. The Z represents UTC. The Z6 may be replaced with a time zone offset of the form +0000 or -08:00-, where the first two digits are hours, the :D is optional and the second two digits (also optional) are minutes.:<>?@ANoneBaeson,Run an attoparsec parser as an aeson parser.CaesonParse a date of the form [+,-]YYYY-MM-DD.DaesonParse a time of the form HH:MM[:SS[.SSS]].EaesonParse a time zone, and return 1F if the offset from UTC is zero. (This makes some speedups possible.)Faeson#Parse a date and time, of the form YYYY-MM-DD HH:MM[:SS[.SSS]]$. The space may be replaced with a TT. The number of seconds is optional and may be followed by a fractional component.Gaeson Behaves as H5, but converts any time zone offset into a UTC time.Haeson5Parse a date with time zone info. Acceptable formats:YYYY-MM-DD HH:MM Z YYYY-MM-DD HH:MM:SS Z YYYY-MM-DD HH:MM:SS.SSS Z!The first space may instead be a T*, and the second space is optional. The Z represents UTC. The Z6 may be replaced with a time zone offset of the form +0000 or -08:00-, where the first two digits are hours, the :D is optional and the second two digits (also optional) are minutes.BCDEFGHNone"#$%&',-7;<=>?FSTVm1LaesonLifting of the Z# class to binary type constructors.!Instead of manually writing your L instance,  Data.Aeson.THT provides Template Haskell functions which will derive an instance at compile time.OaesonLifting of the Z" class to unary type constructors.!Instead of manually writing your O9 instance, there are two options to do it automatically: Data.Aeson.TH provides Template Haskell functions which will derive an instance at compile time. The generated instance is optimized for your type so it will probably be more efficient than the following option.?The compiler can provide a default generic implementation for P. To use the second, simply add a  deriving I( clause to your datatype and declare a O= instance for your datatype without giving a definition for P. For example: '{-# LANGUAGE DeriveGeneric #-} import  GHC.Generics? data Pair a b = Pair { pairFst :: a, pairSnd :: b } deriving I instance Z a => O (Pair a) If the default implementation doesn't give exactly the results you want, you can customize the generic decoding with only a tiny amount of effort, using c with your preferred  : customOptions = 5 {   = J  } instance Z a => O (Pair a) where P = c customOptions RaesonThis type is related to ToJSONKeyFunction. If V is used in the W instance, then ToJSONKeyValue should be used in the  ToJSONKeyS instance. The other three data constructors for this type all correspond to  ToJSONKeyText. Strictly speaking, U is more powerful than T&, which is in turn more powerful than SJ. For performance reasons, these exist as three options instead of one.Saesonuses K (L in older GHCs)Taesonconversion from M that always succeedsUaesonconversion from M that may failVaesonconversion for non-textual keysNaesonWith GHC 7.8+ we carry around O M at dictionary, to give us an assurance that the program will not segfault. Unfortunately we cannot enforce that the P instances or the Q instances for M and a agree.7At the moment this type is intentionally not exported. R. can be inspected, but cannot be constructed.WaesonRead the docs for  ToJSONKeyf first. This class is a conversion in the opposite direction. If you have a newtype wrapper around MR, the recommended way to define instances is with generalized newtype deriving: Vnewtype SomeId = SomeId { getSomeId :: Text } deriving (Eq,Ord,Hashable,FromJSONKey)Xaeson5Strategy for parsing the key of a map-like container.Yaeson!This is similar in spirit to the R method of S". It makes it possible to give T) keys special treatment without using OverlappingInstancesV. End users should always be able to use the default implementation of this method.ZaesonIA type that can be converted from JSON, with the possibility of failure.In many cases, you can get the compiler to generate parsing code for you (see below). To begin, let's cover writing an instance by hand.EThere are various reasons a conversion could fail. For example, an % could be missing a required key, an J could be of the wrong size, or a value could be of an incompatible type.<The basic ways to signal a failed conversion are as follows:empty and mzero' work, but are terse and uninformative;U yields a custom error message;gc produces an informative message for cases when the value encountered is not of the expected type.#An example type and instance using g: -- Allow ourselves to write Mi literals. {-# LANGUAGE OverloadedStrings #-} data Coord = Coord { x :: Double, y :: Double } instance Z Coord where [ ( v) = Coord V v s "x" W v s$ "y" -- We do not expect a non-! value here. -- We could use mzero to fail, but g9 -- gives a much more informative error message. [ invalid = g "Coord" invalid ^For this common case of only being concerned with a single type of JSON value, the functions k,  withNumberd, etc. are provided. Their use is to be preferred when possible, since they are more terse. Using k], we can rewrite the above instance (assuming the same language extension and data type) as:  instance Z Coord where [ = k "Coord" $ \v -> Coord V v s "x" W v s "y" !Instead of manually writing your Z9 instance, there are two options to do it automatically: Data.Aeson.TH provides Template Haskell functions which will derive an instance at compile time. The generated instance is optimized for your type so it will probably be more efficient than the following option.?The compiler can provide a default generic implementation for [. To use the second, simply add a  deriving X( clause to your datatype and declare a Z= instance for your datatype without giving a definition for [.<For example, the previous example can be simplified to just: '{-# LANGUAGE DeriveGeneric #-} import  GHC.Generics; data Coord = Coord { x :: Double, y :: Double } deriving X instance Z Coord 2The default implementation will be equivalent to  parseJSON = b 5U; If you need different options, you can customize the generic decoding by defining: customOptions = 5 {   = J  } instance Z Coord where [ = b customOptions ]aesonA ]" value either stores nothing (for Z_) or it stores the two function arguments that decode occurrences of the type parameter (for O).`aesonFClass of generic representation types that can be converted from JSON.aaesonThis method (applied to 54) is used as the default generic implementation of [ (if the arity is ) or P (if the arity is ).baeson?A configurable generic JSON decoder. This function applied to 5 is used as the default for [" when the type is an instance of X.caeson?A configurable generic JSON decoder. This function applied to 5 is used as the default for P" when the type is an instance of I.daeson Construct R for types coercible from M'. This conversion is still unsafe, as Q and P instances of a should be compatible with Mn i.e. hash values should be equal for wrapped values as well. This property will always be maintained if the Q and PL instances are derived with generalized newtype deriving. compatible with M6 i.e. hash values be equal for wrapped values as well./On pre GHC 7.8 this is unconstrainted function.eaesonSemantically the same as 0coerceFromJSONKeyFunction = fmap coerce = coerce. See note on d.faesonSame as Y$. Provided for the consistency with ToJSONKeyFunction.gaeson@Fail parsing due to a type mismatch, with a descriptive message.Example usage: +instance FromJSON Coord where parseJSON (@ v) = {- type matches, life is good -} parseJSON wat = g "Coord" wat haesonLift the standard [' function through the type constructor.iaesonLift the standard [' function through the type constructor.jaesonHelper function to use with P. See .kaesonk expected f value applies f to the  when value is an  and fails using g expected otherwise.laesonl expected f value applies f to the M when value is a T and fails using g expected otherwise.maesonm expected f value applies f to the  when value is an  and fails using g expected otherwise.naesonn expected f value applies f to the Z number when value is a  and fails using g expected otherwise. . WarningH: If you are converting from a scientific to an unbounded type such as [E you may want to add a restriction on the size of the exponent (see \N) to prevent malicious input from filling up the memory of the target system.\aeson\ expected f value applies f to the Z number when value is a  and fails using g expected otherwise.&The conversion will also fail wyth a @g if the Z exponent is larger than 1024.oaesono expected f value applies f to the ] when value is a ] and fails using g expected otherwise.paeson$Decode a nested JSON-encoded string.qaeson=Convert a value from JSON, failing if the types do not match.raeson=Convert a value from JSON, failing if the types do not match.saeson7Retrieve the value associated with the given key of an . The result is emptyQ if the key is not present or the value cannot be converted to the desired type.2This accessor is appropriate if the key and value mustW be present in an object for it to be valid. If the key and value are optional, use t instead.taeson7Retrieve the value associated with the given key of an . The result is 1. if the key is not present or if its value is , or empty6 if the value cannot be converted to the desired type.This accessor is most useful if the key and value can be absent from an object without affecting its validity. If the key and value are mandatory, use s instead.uaeson7Retrieve the value associated with the given key of an . The result is 1 if the key is not present or empty7 if the value cannot be converted to the desired type.This differs from t by attempting to parse B the same as any other JSON value, instead of interpreting it as 1.vaesonFunction variant of s.waesonFunction variant of t.xaesonFunction variant of u.yaeson Variant of s with explicit parser function.E.g. y h :: (O f, Z a) ->  -> M ->  (f a)zaeson Variant of t with explicit parser function.{aeson Variant of u with explicit parser function.|aeson#Helper for use in combination with t< to provide default values for optional JSON object fields.This combinator is most useful if the key and value can be absent from an object without affecting its validity and we know a default value to assign in that case. If the key and value are mandatory, use s instead.Example usage:  v1 <- o t1 "opt_field_with_dfl" .!= "default_val" v2 <- o s "mandatory_field" v3 <- o t "opt_field2" ^aesonThis instance includes a bounds check to prevent maliciously large inputs to fill up the memory of the target system. You can newtype Z& and provide your own instance using n$ if you want to allow larger inputs._aesonThis instance includes a bounds check to prevent maliciously large inputs to fill up the memory of the target system. You can newtype Z& and provide your own instance using n$ if you want to allow larger inputs.`aesonSupported string formats:YYYY-MM-DD HH:MM Z YYYY-MM-DD HH:MM:SS Z YYYY-MM-DD HH:MM:SS.SSS Z!The first space may instead be a T*, and the second space is optional. The Z represents UTC. The Z6 may be replaced with a time zone offset of the form +0000 or -08:00-, where the first two digits are hours, the :D is optional and the second two digits (also optional) are minutes.aaesonThis instance includes a bounds check to prevent maliciously large inputs to fill up the memory of the target system. You can newtype Z& and provide your own instance using n$ if you want to allow larger inputs.baesonThis instance includes a bounds check to prevent maliciously large inputs to fill up the memory of the target system. You can newtype Z& and provide your own instance using n$ if you want to allow larger inputs.caeson%Only law abiding up to interpretationgaeson-The name of the type you are trying to parse.aesonThe actual value encountered.2LMNOPQRVSTUWXYZ[\]^_`adbcdefghijklmnopqrstuvwxyz{|(c) 2015-2016 Bryan O'SullivanBSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneph "#$%&'(,/1r "#$&'(%1/r,(c) 2015-2016 Bryan O'SullivanBSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneroFGHIJKFGIHJKO(c) 2011 MailRank, Inc. (c) 2013 Simon Meier <iridcode@gmail.com>BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNone{ eaesonEncode a JSON value to a Data.ByteString f.{Use this function if you are encoding over the wire, or need to prepend or append further bytes to the encoded JSON value.gaesonEncode a JSON null.haesonEncode a JSON boolean.iaesonEncode a JSON array.jaesonEncode a JSON string.kaeson/Encode a JSON string, without enclosing quotes.laeson Add quotes surrounding a buildermaesonEncode a JSON string.naesonEncode a JSON number.eghiojklmnpqrstuvwxyNone1QV }aeson"Type tag for tuples contents, see .~aeson[A series of values that, when encoded, should be separated by commas. Since 0.11.0.0, the .=* operator is overloaded to create either  (Text, Value) or ~b. You can use Series when encoding directly to a bytestring builder as in the following example: EtoEncoding (Person name age) = pairs ("name" .= name <> "age" .= age)aesonOften used synonym for .aesonAn encoding of a JSON value.tagF represents which kind of JSON the Encoding is encoding to, we reuse M and  as tags here.aeson*Acquire the underlying bytestring builder.aesonMake Encoding from Builder.WUse with care! You have to make sure that the passed Builder is a valid JSON Encoding!aeson8Encode a series of key/value pairs, separated by commas.aesonEncode as JSON objectaesonSee .aesonEncode as a tuple._@ toEncoding (X a b c) = tuple $ toEncoding a >*< toEncoding b >*< toEncoding caeson key encodingaesonvalue encodingaeson foldrWithKey - indexed foldaeson containerH}~H~}66None6~6~None"#$&',7;<=>?AFSTVA{zaesonLike . but the value is already converted to JSON ( or X), and the result actually represents lists of pairs so it can be readily concatenated.{aeson"Wrap a list of pairs as an object.|aeson2Get the name of the constructor of a sum datatype.aesonLifting of the # class to binary type constructors.!Instead of manually writing your  instance,  Data.Aeson.THT provides Template Haskell functions which will derive an instance at compile time.AThe compiler cannot provide a default generic implementation for  , unlike  and .aesonLifting of the " class to unary type constructors.!Instead of manually writing your 9 instance, there are two options to do it automatically: Data.Aeson.TH provides Template Haskell functions which will derive an instance at compile time. The generated instance is optimized for your type so it will probably be more efficient than the following option.?The compiler can provide a default generic implementation for . To use the second, simply add a  deriving I( clause to your datatype and declare a < instance for your datatype without giving definitions for  or . For example: '{-# LANGUAGE DeriveGeneric #-} import  GHC.Generics; data Pair = Pair { pairFst :: a, pairSnd :: b } deriving I instance  a =>  (Pair a) If the default implementation doesn't give exactly the results you want, you can customize the generic encoding with only a tiny amount of effort, using  and  with your preferred  : customOptions = 5 {   = J  } instance  a =>  (Pair a) where  =  customOptions  =  customOptions  See also .aeson)key is encoded to string, produces objectaeson'key is encoded to value, produces arrayaesonQTypeclass for types that can be used as the key of a map-like container (like Map or HashMap). For example, since M has a  instance and } has a , instance, we can encode a value of type Map M }:<LBC8.putStrLn $ encode $ Map.fromList [("foo" :: Text, 'a')] {"foo":"a"}Since ~ also has a " instance, we can similarly write:7LBC8.putStrLn $ encode $ Map.fromList [(5 :: Int, 'a')] {"5":"a"}HJSON documents only accept strings as object keys. For any type from baseK that has a natural textual representation, it can be expected that its * instance will choose that representation.For data types that lack a natural textual representation, an alternative is provided. The map-like container is represented as a JSON array instead of a JSON object. Each value in the array is an array with exactly two values. The first is the key and the second is the value.LFor example, values of type '[Text]' cannot be encoded to a string, so a Map2 with keys of type '[Text]' is encoded as follows:JLBC8.putStrLn $ encode $ Map.fromList [(["foo","bar","baz" :: Text], 'a')][[["foo","bar","baz"],"a"]]The default implementation of 5 chooses this method of encoding a key, using the  instance of the type.STo use your own data type as the key in a map, all that is needed is to write a  (and possibly a  FromJSONKeyL) instance for it. If the type cannot be trivially converted to and from M, it is recommended that a is used. Since the default implementations of the typeclass methods can build this from a 5 instance, there is nothing that needs to be written: xdata Foo = Foo { fooAge :: Int, fooName :: Text } deriving (Eq,Ord,Generic) instance ToJSON Foo instance ToJSONKey FooThat's it. We can now write::let m = Map.fromList [(Foo 4 "bar",'a'),(Foo 6 "arg",'b')]LBC8.putStrLn $ encode mG[[{"fooName":"bar","fooAge":4},"a"],[{"fooName":"arg","fooAge":6},"b"]]SThe next case to consider is if we have a type that is a newtype wrapper around ME. The recommended approach is to use generalized newtype deriving: Pnewtype RecordId = RecordId { getRecordId :: Text} deriving (Eq,Ord,ToJSONKey)Then we may write:<LBC8.putStrLn $ encode $ Map.fromList [(RecordId "abc",'a')] {"abc":"a"}ESimple sum types are a final case worth considering. Suppose we have: =data Color = Red | Green | Blue deriving (Show,Read,Eq,Ord)It is possible to get the % instance for free as we did with FooD. However, in this case, we have a natural way to go to and from ME that does not require any escape sequences. So, in this example,  will be used instead of  . The $ instance can be used to help write : instance ToJSONKey Color where toJSONKey = ToJSONKeyText f g where f = Text.pack . show g = text . Text.pack . show -- text function is from Data.Aeson.Encoding-The situation of needing to turning function  a -> Text into a j is common enough that a special combinator is provided for it. The above instance can be rewritten as: Minstance ToJSONKey Color where toJSONKey = toJSONKeyText (Text.pack . show)FThe performance of the above instance can be improved by not using T/ as an intermediate step when converting to M^. One option for improving performance would be to use template haskell machinery from the  text-show2 package. However, even with the approach, the I (a wrapper around a bytestring builder) is generated by encoding the M to a  ByteStringa, an intermediate step that could be avoided. The fastest possible implementation would be: C-- Assuming that OverloadedStrings is enabled instance ToJSONKey Color where toJSONKey = ToJSONKeyText f g where f x = case x of {Red -> "Red";Green ->"Green";Blue -> "Blue"} g x = case x of {Red -> text "Red";Green -> text "Green";Blue -> text "Blue"} -- text function is from Data.Aeson.EncodingThis works because GHC can lift the encoded values out of the case statements, which means that they are only evaluated once. This approach should only be used when there is a serious need to maximize performance.aeson8Strategy for rendering the key for a map-like container.aeson!This is similar in spirit to the  showsList method of ". It makes it possible to give T) keys special treatment without using OverlappingInstancesV. End users should always be able to use the default implementation of this method.aeson,A key-value pair for encoding a JSON object.aeson%A type that can be converted to JSON.Instances in general must specify  and should (but don't need to) specify .An example type and instance: -- Allow ourselves to write Mi literals. {-# LANGUAGE OverloadedStrings #-} data Coord = Coord { x :: Double, y :: Double } instance  Coord where  (Coord x y) = 0 ["x"  x, "y"  y]  (Coord x y) = pairs ("x"  x  "y"  y) !Instead of manually writing your 9 instance, there are two options to do it automatically: Data.Aeson.TH provides Template Haskell functions which will derive an instance at compile time. The generated instance is optimized for your type so it will probably be more efficient than the following option.?The compiler can provide a default generic implementation for . To use the second, simply add a  deriving X( clause to your datatype and declare a . instance. If you require nothing other than 5Q, it is sufficient to write (and this is the only alternative where the default  implementation is sufficient): '{-# LANGUAGE DeriveGeneric #-} import  GHC.Generics; data Coord = Coord { x :: Double, y :: Double } deriving X instance  Coord where  =  5 eIf on the other hand you wish to customize the generic decoding, you have to implement both methods: customOptions = 5 {   = J  } instance  Coord where  =  customOptions  =  customOptions /Previous versions of this library only had the  method. Adding  had to reasons: EtoEncoding is more efficient for the common case that the output of  is directly serialized to a  ByteStringQ. Further, expressing either method in terms of the other would be non-optimal.mThe choice of defaults allows a smooth transition for existing users: Existing instances that do not define i still compile and have the correct semantics. This is ensured by making the default implementation of  use Y. This produces correct results, but since it performs an intermediate conversion to a 6, it will be less efficient than directly emitting an 7. (this also means that specifying nothing more than instance ToJSON Coords would be sufficient as a generically decoding instance, but there probably exists no good reason to not specify  in new instances.)aeson=Convert a Haskell value to a JSON-friendly intermediate type.aesonEncode a Haskell value as JSON.CThe default implementation of this method creates an intermediate  using . This provides source-level compatibility for people upgrading from older versions of this library, but obviously offers no performance advantage.%To benefit from direct encoding, you mustj provide an implementation for this method. The easiest way to do so is by having your types implement X using the  DeriveGenericA extension, and then have GHC generate a method body as follows.  instance  Coord where  =  5 aesonA " value either stores nothing (for _) or it stores the two function arguments that encode occurrences of the type parameter (for ).aesonEClass of generic representation types that can be converted to JSON.aesonThis method (applied to 54) is used as the default generic implementation of  (with enc ~  and arity ~ ) and  (if the arity is ).-It also provides a generic implementation of  (with enc ~  and arity ~ ) and  (if the arity is ).aeson?A configurable generic JSON creator. This function applied to 5 is used as the default for " when the type is an instance of X.aeson?A configurable generic JSON creator. This function applied to 5 is used as the default for " when the type is an instance of I.aeson?A configurable generic JSON encoder. This function applied to 5 is used as the default for " when the type is an instance of X.aeson?A configurable generic JSON encoder. This function applied to 5 is used as the default for " when the type is an instance of I.aeson!Helper for creating textual keys.  instance  MyKey where  = [ myKeyToText where myKeyToText = Text.pack . show -- or showt from text-show aesonTODO: should this be exported?aesonContravariant map, as  is a contravariant functor.aesonLift the standard ' function through the type constructor.aesonLift the standard ' function through the type constructor.aesonLift the standard ' function through the type constructor.aesonLift the standard ' function through the type constructor.aesonHelper function to use with . Useful when writing own  instances. .newtype F a = F [a] -- This instance encodes T as an array of chars instance  F where  tj _ (F xs) =  tj ( tj) xs  te _ (F xs) =  te ( te) xs instance  F where  p _ v = F <$>  p ( p) v aesonHelper function to use with , see .aeson!Encode something t a JSON string.aesonindexaesonlength,z{8 D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNone &'+;<=>?VD[LMNOPQRVSTUWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneIaeson Encode a  as a JSON array.  ! )*+-.02345678LMNOPQRVSTUWXYZ[\]^_`abcdefghijklmnopqstuvwxyz{|~~)*g! Z[\q+.-234WXYRVSTUdefOPQhLMNi`a]^_bcklmnopstu|0vwxyz{j 7856D(c) 2012-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneU>aesonEncode a JSON  to a Data.Text.LazyNote: uses aesonEncode a JSON  to a  Data.Text >, which can be embedded efficiently in a text-based protocol.6If you are going to immediately encode straight to a !", it is more efficient to use encode (lazy ByteString) or  fromEncoding .  (ByteString.Builder) instead.Note: Uses D(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNone}aeson-Efficiently serialize a JSON value as a lazy .$This is implemented in terms of the  class's  method.aeson-Efficiently serialize a JSON value as a lazy  and write it to a file.aeson1Efficiently deserialize a JSON value from a lazy 5. If this fails due to incomplete or invalid input, 1 is returned._The input must consist solely of a JSON document, with no trailing data except for whitespace.?This function parses immediately, but defers conversion. See 9 for details.aeson3Efficiently deserialize a JSON value from a strict 5. If this fails due to incomplete or invalid input, 1 is returned._The input must consist solely of a JSON document, with no trailing data except for whitespace.?This function parses immediately, but defers conversion. See 9 for details.aesoneEfficiently deserialize a JSON value from a file. If this fails due to incomplete or invalid input, 1 is returned.nThe input file's content must consist solely of a JSON document, with no trailing data except for whitespace.?This function parses immediately, but defers conversion. See 9 for details.aeson1Efficiently deserialize a JSON value from a lazy 5. If this fails due to incomplete or invalid input, 1 is returned._The input must consist solely of a JSON document, with no trailing data except for whitespace.@This function parses and performs conversion immediately. See : for details.aeson3Efficiently deserialize a JSON value from a strict 5. If this fails due to incomplete or invalid input, 1 is returned._The input must consist solely of a JSON document, with no trailing data except for whitespace.@This function parses and performs conversion immediately. See : for details.aesoneEfficiently deserialize a JSON value from a file. If this fails due to incomplete or invalid input, 1 is returned.nThe input file's content must consist solely of a JSON document, with no trailing data except for whitespace.@This function parses and performs conversion immediately. See : for details.aesonLike 2 but returns an error message when decoding fails.aesonLike 2 but returns an error message when decoding fails.aesonLike 2 but returns an error message when decoding fails.aesonLike 2 but returns an error message when decoding fails.aesonLike 2 but returns an error message when decoding fails.aesonLike 2 but returns an error message when decoding fails.  ! 05689:LMNOPQRVSTUWXYZ[\]^_`abchiklmnopqstu|~Z[\! qWXYRVSTUOPQhLMNi`a]^_bc 5 86klmnop~stu|09:C(c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3 experimentalportableNone$;=AFaesonEWhether a type is not of kind *, is of kind *, or is a kind variable.aeson5A representation of which typeclass is being derived.aeson0A refinement of JSONFun to [ToJSON, ToEncoding].aeson?A representation of which typeclass method is being spliced in.aeson8Whether ToJSON(1)(2) or FromJSON(1)(2) is being derived.aesonMA representation of the arity of the ToJSON/FromJSON typeclass being derived.aesonGenerates both  and ZT instance declarations for the given data type or data family instance constructor.EThis is a convienience function which is equivalent to calling both  and .aesonGenerates both  and OT instance declarations for the given data type or data family instance constructor.EThis is a convienience function which is equivalent to calling both  and .aesonGenerates both  and LT instance declarations for the given data type or data family instance constructor.EThis is a convienience function which is equivalent to calling both  and .aeson Generates a S instance declaration for the given data type or data family instance constructor.aeson Generates a S instance declaration for the given data type or data family instance constructor.aeson Generates a S instance declaration for the given data type or data family instance constructor. aesonjGenerates a lambda expression which encodes the given data type or data family instance constructor as a . aesonjGenerates a lambda expression which encodes the given data type or data family instance constructor as a Q by using the given encoding function on occurrences of the last type parameter. aesonjGenerates a lambda expression which encodes the given data type or data family instance constructor as a W by using the given encoding functions on occurrences of the last two type parameters. aesonvGenerates a lambda expression which encodes the given data type or data family instance constructor as a JSON string. aesonGenerates a lambda expression which encodes the given data type or data family instance constructor as a JSON string by using the given encoding function on occurrences of the last type parameter.aesonGenerates a lambda expression which encodes the given data type or data family instance constructor as a JSON string by using the given encoding functions on occurrences of the last two type parameters.aesonHelper function used by both  and   . Generates code to generate a  or K of a number of constructors. All constructors must be from the same type.aeson$Name of the constructor as a quoted  or .aeson$Name of the constructor as a quoted Text.aesonName of the constructor.aesonIf constructor is nullary.aeson-Wrap fields of a non-record constructor. See .aeson)Wrap fields of a record constructor. See .aesonWrap fields of a constructor.aesonEGenerates code to generate the JSON encoding of a single constructor.aesonWrap a list of quoted s in a quoted  (of type ).aeson?Wrap an associative list of keys and quoted values in a quoted .aeson a list of fixed length. 6mconcatE [ [|x|], [|y|], [|z|] ] = [| x <> (y <> z) |]aeson)Create (an encoding of) a key-value pair.  pairE "k" [|v|] = [|pair "k" v|]aeson Generates a ZS instance declaration for the given data type or data family instance constructor.aeson Generates a OS instance declaration for the given data type or data family instance constructor.aeson Generates a LS instance declaration for the given data type or data family instance constructor.aesonyGenerates a lambda expression which parses the JSON encoding of the given data type or data family instance constructor.aesonGenerates a lambda expression which parses the JSON encoding of the given data type or data family instance constructor by using the given parsing function on occurrences of the last type parameter.aesonGenerates a lambda expression which parses the JSON encoding of the given data type or data family instance constructor by using the given parsing functions on occurrences of the last two type parameters.aesonHelper function used by both  and w. Generates code to parse the JSON encoding of a number of constructors. All constructors must be from the same type.aesonBGenerates code to parse the JSON encoding of a single constructor.aesonCGenerates code to parse the JSON encoding of an n-ary constructor.aesonFunctionality common to , , and .aesonFunctionality common to deriveToJSON(1)(2) and deriveFromJSON(1)(2).aesonAttempt to derive a constraint on a Type. If successful, return Just the constraint and any kind variable names constrained to *. Otherwise, return Nothing and the empty list.dSee Note [Type inference in derived instances] for the heuristics used to come up with constraints.aeson"Returns True if a Type has kind *.aesonhasKindVarChain n kind Checks if kindj is of the form k_0 -> k_1 -> ... -> k_(n-1), where k0, k1, ..., and k_(n-1) can be * or kind variables.aesonEIf a Type is a SigT, returns its kind signature. Otherwise, return *.aesoniExtract Just the Name from a type variable. If the argument Type is not a type variable, return Nothing.aesondExtract the Name from a type variable. If the argument Type is not a type variable, throw an error.aeson7Fully applies a type constructor to its type variables.aesonIs the given type a variable?aesonPIs the given type a type family constructor (and not a data family constructor)?aeson6Peel off a kind signature from a Type (if it has one).aesonAAre all of the items in a list (which have an ordering) distinct?HThis uses Set (as opposed to nub) for better asymptotic time complexity.aeson9Does the given type mention any of the Names in the list?aeson@Does an instance predicate mention any of the Names in the list?aesonHSplit an applied type into its individual components. For example, this: Either Int Char would split to this: [Either, Int, Char] aesonESplit a type signature by the arrows on its spine. For example, this: .forall a b. (a ~ b) => (a -> b) -> Char -> () would split to this: (a ~ b, [a -> b, Char, ()]) aeson)Like uncurryType, except on a kind level.aeson<Makes a string literal expression from a constructor's name.aesonExtracts a record field label.aesonThe name of the outermost  constructor.aesonChecks to see if the last types in a data family instance can be safely eta- reduced (i.e., dropped), given the other types. This checks for three conditions: +All of the dropped types are type variables%All of the dropped types are distinct<None of the remaining types mention any of the dropped typesaesonEither the given data type doesn't have enough type variables, or one of the type variables to be eta-reduced cannot realize kind *.aeson}One of the last type variables cannot be eta-reduced (see the canEtaReduce function for the criteria it would have to meet).aesonZThe data type has a DatatypeContext which mentions one of the eta-reduced type variables.aesonThe data type mentions one of the n eta-reduced type variables in a place other than the last nth positions of a data type in a constructor's field.aesonbThe data type has an existential constraint which mentions one of the eta-reduced type variables.aeson8Does a Type have kind * or k (for some kind variable k)?aesonReturns  the kind variable  of a # if it exists. Otherwise, returns 1.aesonjConcat together all of the StarKindStatuses that are IsKindVar and extract the kind variables' Names out.!aesonEncoding options.aeson'Name of the type for which to generate  and Z instances.aesonEncoding options.aeson'Name of the type for which to generate  and O instances.aesonEncoding options.aeson'Name of the type for which to generate  and L instances.aesonEncoding options.aeson)Name of the type for which to generate a  instance declaration.aesonEncoding options.aeson)Name of the type for which to generate a  instance declaration.aesonEncoding options.aeson)Name of the type for which to generate a  instance declaration.aeson!The ToJSON variant being derived.aesonEncoding options.aeson3Name of the type for which to generate an instance. aesonEncoding options.aesonName of the type to encode. aesonEncoding options.aesonName of the type to encode. aesonEncoding options.aesonName of the type to encode.aeson&Which class's method is being derived.aesonEncoding options.aesonName of the encoded type. aesonEncoding options.aesonName of the type to encode. aesonEncoding options.aesonName of the type to encode.aesonEncoding options.aesonName of the type to encode.aeson&Which class's method is being derived.aesonEncoding options.aesonName of the encoded type.aeson The method ( or ) being derived.aeson!The ToJSON variant being derived.aesonEncoding options.aeson=The types from the data type/data family instance declarationaeson8Constructors for which to generate JSON generating code.aesonThe method being derived.aesonDeriving options.aeson*Does this type have multiple constructors.aesonIs this constructor nullary.aesonConstructor name.aesonFields of the constructor as a  or .aesonRepresentation of an  fragment used for the  variant; of type [(Text,Value)] or  [Encoding]), depending on the method being derived.!For non-records, produces a pair "contentsFieldName":value , given a contentsFieldName as an argument. See .tFor records, produces the list of pairs corresponding to fields of the encoded value (ignores the argument). See .aesonEncoding options.aeson)Name of the type for which to generate a Z instance declaration.aesonEncoding options.aeson)Name of the type for which to generate a O instance declaration.aesonEncoding options.aeson)Name of the type for which to generate a  FromJSON3 instance declaration.aeson#The FromJSON variant being derived.aesonEncoding options.aesonAName of the type for which to generate an instance. declaration.aesonEncoding options.aesonName of the encoded type.aesonEncoding options.aesonName of the encoded type.aesonEncoding options.aesonName of the encoded type.aeson&Which class's method is being derived.aesonEncoding options.aesonName of the encoded type.aeson#The FromJSON variant being derived.aeson2Name of the type to which the constructors belong.aesonEncoding optionsaeson=The types from the data type/data family instance declarationaeson5Constructors for which to generate JSON parsing code.aeson#The FromJSON variant being derived.aesonEMaps the last type variables to their decoding function arguments.aeson2Name of the type to which the constructor belongs.aesonEncoding options.aeson4Constructor for which to generate JSON parsing code.aeson0Left (valFieldName, objName) or Right valNameaeson#The FromJSON variant being derived.aesonEMaps the last type variables to their decoding function arguments.aeson&The argument types of the constructor.aeson2Name of the type to which the constructor belongs.aesonstructor name.aesonstructor arity.aeson#Function which derives a flavor of .aeson#Function which derives a flavor of Z.aesonEncoding options.aeson'Name of the type for which to generate  and Z instances.aeson6The class methods and the functions which derive them.aeson,The class for which to generate an instance.aesonEncoding options.aesonEName of the type for which to generate a class instance declaration.aeson*The function which derives the expression.aeson&Which class's method is being derived.aesonEncoding options.aesonName of the encoded type.aeson(The type constructor or data family nameaesonThe typeclass to deriveaesonThe datatype contextaeson*The types to instantiate the instance withaeson1Are we dealing with a data family instance or notaesonEncoding options# 56     # 56     64 D(c) 2012-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc.BSD3%Bryan O'Sullivan <bos@serpentine.com> experimentalportableNoneD#$%&'()*+,-./01234556789:;<=98>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~7e[        !"#$%&'()*+,-./0123   4 56789:; < = >?@ABCDDEFGHICHIBJKLMNOAPQJKRJSTJSUVWXYZYJ[\JK]H^_J`abcdeHIfHghijkJlmJlnJK:JKoJpqJKrJ[sJKtuvwxyz{HI<|}~ePHIHIJJK Jb""JKJKaeson-1.4.0.0-inplaceData.Aeson.TypesData.Aeson.InternalData.Aeson.Parser.InternalData.Aeson.Internal.TimeData.Aeson.Encoding.InternalData.Aeson.Text Data.Aeson Data.Aeson.THData.Aeson.EncodeData.Aeson.CompatData.Aeson.Internal.FunctionsData.Aeson.Parser.UnescapePureData.Aeson.Parser.UnescapeData.Aeson.Types.GenericData.Aeson.Types.InternalData.Aeson.ParserData.Attoparsec.Time.InternalData.Attoparsec.TimeData.Aeson.Parser.TimeData.Aeson.Types.FromJSON Data.ChartoUpperData.Aeson.ToJSON listEncodingData.Aeson.Encoding.BuilderData.Aeson.EncodingData.Aeson.Types.ToJSONData.Aeson.FromJSON FromJSON1 liftParseJSON listParserData.Aeson.Types.ClassL ByteStringOneZero SumEncoding TaggedObject UntaggedValueObjectWithSingleField TwoElemArray tagFieldNamecontentsFieldNameOptionsfieldLabelModifierconstructorTagModifierallNullaryToStringTagomitNothingFields sumEncodingunwrapUnaryRecordstagSingleConstructorsPair DotNetTimefromDotNetTimeValueObjectArrayStringNumberBoolNullParserResultErrorSuccessIResultIErrorISuccessJSONPathJSONPathElementKeyIndex emptyArray emptyObjectparseiparse parseMaybe parseEither formatErrorobject modifyFailureparserThrowErrorparserCatchErrordefaultOptionsdefaultTaggedObjectcamelTocamelTo2jsonjson'valuevalue'jstringjstring_ decodeWithdecodeStrictWitheitherDecodeWitheitherDecodeStrictWithjsonEOFjsonEOF' scientific TimeOfDay64TODtoPicofromPicodiffTimeOfDay64 toTimeOfDay64 FromJSON2liftParseJSON2liftParseJSONList2liftParseJSONListFromJSONKeyFunctionFromJSONKeyCoerceFromJSONKeyTextFromJSONKeyTextParserFromJSONKeyValue FromJSONKey fromJSONKeyfromJSONKeyListFromJSON parseJSON parseJSONListFromArgs NoFromArgs From1Args GFromJSON gParseJSONgenericParseJSONgenericLiftParseJSONfromJSONKeyCoercecoerceFromJSONKeyFunctionmapFromJSONKeyFunction typeMismatch parseJSON1 parseJSON2 withObjectwithText withArraywithScientificwithBoolwithEmbeddedJSONfromJSON ifromJSON.:.:?.:! parseFieldparseFieldMaybeparseFieldMaybe'explicitParseFieldexplicitParseFieldMaybeexplicitParseFieldMaybe'.!=InArraySeriesEmptyEncoding Encoding' fromEncodingunsafeToEncodingencodingToLazyByteString retagEncodingpairpairStrpair' nullEncoding emptyArray_ emptyObject_ wrapArray wrapObjectnull_boolpairslistdict>*<emptyeconcat><tupletextlazyTextstringcommacolon openBracket closeBracket openCurly closeCurlyint8int16int32int64intword8word16word32word64wordintegerfloatdoubleint8Text int16Text int32Text int64TextintText word8Text word16Text word32Text word64TextwordText integerText floatText doubleTextscientificTextday localTimeutcTime timeOfDay zonedTime$fOrdEncoding' $fEqEncoding'$fShowEncoding'$fMonoidSeries$fSemigroupSeriesToJSON2 liftToJSON2liftToJSONList2liftToEncoding2liftToEncodingList2ToJSON1 liftToJSONliftToJSONListliftToEncodingliftToEncodingListToJSONKeyFunction ToJSONKeyTextToJSONKeyValue ToJSONKey toJSONKey toJSONKeyListKeyValue.=ToJSONtoJSON toEncoding toJSONListtoEncodingListToArgsNoToArgsTo1Args genericToJSONgenericLiftToJSONgenericToEncodinggenericLiftToEncoding toJSONKeyTextcontramapToJSONKeyFunctiontoJSON1 toEncoding1toJSON2 toEncoding2 listValue GToEncodingGToJSONfoldableencodeToLazyTextencodeToTextBuilderencode encodeFiledecode decodeStrictdecodeFileStrictdecode' decodeStrict'decodeFileStrict' eitherDecodeeitherDecodeStricteitherDecodeFileStrict eitherDecode'eitherDecodeStrict'eitherDecodeFileStrict' deriveJSON deriveJSON1 deriveJSON2 deriveToJSON deriveToJSON1 deriveToJSON2mkToJSON mkLiftToJSON mkLiftToJSON2 mkToEncodingmkLiftToEncodingmkLiftToEncoding2deriveFromJSONderiveFromJSON1deriveFromJSON2 mkParseJSONmkLiftParseJSONmkLiftParseJSON2$fLookupFieldOption$fLookupFieldMaybe$fLookupFielda $fEnumArity $fEqArity $fOrdArity$fEqStarKindStatus fromStrict mapHashKeyValcontainers-0.5.11.0Data.Map.InternalMap]unordered-containers-0.2.9.0-55b47aeee84cc4eef276699af5f4bd8106ff05275454b6ac4511cb6468500f97Data.HashMap.BaseHashMap mapKeyValmapKey unescapeText ProductSize productSizeAndFalseTrueTagged2 unTagged2 AllNullaryIsRecordghc-prim GHC.TypesbaseGHC.BaseNothing time-1.8.0.2 Data.Time.Clock.Internal.UTCTimeUTCTimeFailure isEmptyArrayMaybe Data.EitherEitherLeft skipSpace twoDigitssecondstimeZonerun GHC.GenericsGeneric1mapGHC.Primcoerce Unsafe.Coerce unsafeCoerce text-1.2.3.0Data.Text.InternalText CoerceText Coercible GHC.ClassesEqQhashable-1.2.7.0-b356e041434f827b0f104d89554061d99f77fad88d097133e36b7ec79b4a0ea1Data.Hashable.ClassHashableGHC.ReadreadListReadfail Data.Functor<$><*>GenericfmapSscientific-0.3.6.2-cd9917698dc6759fb69ab3565afad9c4a9d2b3efc1b3abcacd2929abb2f3898bData.Scientific Scientific integer-gmpGHC.Integer.TypeIntegerwithBoundedScientific$fFromJSONDiffTime$fFromJSONNominalDiffTime$fFromJSONZonedTime$fFromJSONInteger$fFromJSONFixed$fFunctorFromJSONKeyFunctionparseOptionalFieldWithencodeToBuilderbytestring-0.10.8.2 Data.ByteString.Builder.InternalBuilderarrayunquotedquoteascii2ascii4ascii5 KeyValuePair FromPairs GetConNameCharIntGHC.ShowShow<>gToJSONtoJSONKeyTextEncstringEncoding writeProduct fromPairs Data.FoldableFoldableData.Text.Internal.BuilderData.ByteString.Lazy.InternalData.ByteString.InternalStarKindStatus JSONClass ToJSONFunJSONFun DirectionArity consToValueconStrconTxt conString isNullaryopaqueSumToValue sumToValuerecordSumToValue argsToValueobjectEmconcatEmconcatpairE consFromJSON parseArgs parseProductderiveJSONBothderiveJSONClassderiveConstraint hasKindStarhasKindVarChaintyKindvarTToNameMaybe varTToName applyTyConisTyVar isTyFamilyunSigT allDistinct mentionsNamepredMentionsName unapplyTy uncurryTy uncurryKind conNameExp fieldLabel valueConName canEtaReducederivingKindErroretaReductionErrordatatypeContextErroroutOfPlaceTyVarErrorexistentialContextErrorcanRealizeKindStarstarKindStatusToNameJusttemplate-haskellLanguage.Haskell.TH.SyntaxNamecatKindVarNamesderiveToJSONCommonmkToJSONCommonmkToEncodingCommonderiveFromJSONCommonmkParseJSONCommonCon mkFunCommonbuildTypeInstance<^><%>