git.iko.soy/typeable/bloodhound
on master help sign in
Changed AND Filter to put "_cache" in appropriate spot.
caecf0fCurtis Carter
Database/Bloodhound/Types.hs+3−2
@@ -949,8 +949,9 @@ instance Seminearring Filter where
949
949
950instance ToJSON Filter where
950instance ToJSON Filter where
951 toJSON (AndFilter filters cache) =
951 toJSON (AndFilter filters cache) =
952+ object ["and" .=
952− object ["and" .= fmap toJSON filters
953+ object [ "filters" .= fmap toJSON filters
953− , "_cache" .= cache]
954+ , "_cache" .= cache]]
954
955
955 toJSON (OrFilter filters cache) =
956 toJSON (OrFilter filters cache) =
956 object ["or" .= fmap toJSON filters
957 object ["or" .= fmap toJSON filters