Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TypeAnnotated a = TypeAnnotated {
- typeAnnotatedValue :: a
- deannotateValue :: Value -> Value
Documentation
newtype TypeAnnotated a Source #
Represents a value that can be converted to and from JSON that will type annotate object keys when serializing and strip them out when deserializating
Instances
ToJSON a => ToJSON (TypeAnnotated a) Source # | |
Defined in Katip.Scribes.ElasticSearch.Annotations toJSON :: TypeAnnotated a -> Value # toEncoding :: TypeAnnotated a -> Encoding # toJSONList :: [TypeAnnotated a] -> Value # toEncodingList :: [TypeAnnotated a] -> Encoding # | |
FromJSON a => FromJSON (TypeAnnotated a) Source # | |
Defined in Katip.Scribes.ElasticSearch.Annotations parseJSON :: Value -> Parser (TypeAnnotated a) # parseJSONList :: Value -> Parser [TypeAnnotated a] # | |
ToObject a => ToObject (TypeAnnotated a) Source # | |
Defined in Katip.Scribes.ElasticSearch.Annotations toObject :: TypeAnnotated a -> Object # | |
LogItem a => LogItem (TypeAnnotated a) Source # | |
Defined in Katip.Scribes.ElasticSearch.Annotations payloadKeys :: Verbosity -> TypeAnnotated a -> PayloadSelection # |
Exported for benchmarking
deannotateValue :: Value -> Value Source #