git.iko.soy/typeable/bloodhound
on master help sign in
Merge pull request #29 from bnordbo/master

Adjusts the format of the OR filter

commitfea234a7993b64ae7e5df165a6dbef07dabd945d authorChris Allen <cma@bitemyapp.com> dateThu 12 Mar 2015, 23:35 (12 years ago) parent58ec8ad33a2af4
1 file changed+5−4
src/Database/Bloodhound/Types.hs+5−4
src/Database/Bloodhound/Types.hs+5−4
@@ -1285,13 +1285,14 @@ instance Seminearring Filter where
12851285
12861286instance ToJSON Filter where
12871287 toJSON (AndFilter filters cache) =
1288− object ["and" .=
1288+ object ["and" .=
12891289 object [ "filters" .= fmap toJSON filters
1290− , "_cache" .= cache]]
1290+ , "_cache" .= cache]]
12911291
12921292 toJSON (OrFilter filters cache) =
1293− object ["or" .= fmap toJSON filters
1294− , "_cache" .= cache]
1293+ object ["or" .=
1294+ object [ "filters" .= fmap toJSON filters
1295+ , "_cache" .= cache]]
12951296
12961297 toJSON (NotFilter notFilter cache) =
12971298 object ["not" .=