git.iko.soy/typeable/bloodhound
on master help sign in
formatting
dd0a228Chris Allen
README.org+9−2
@@ -119,7 +119,8 @@ resp <- deleteMapping testServer testIndex testMapping
119
119
120#+BEGIN_SRC haskell
120#+BEGIN_SRC haskell
121
121
122−-- don't forget the imports and derive generic setting for ghci at the beginning of the examples.
122+-- don't forget the imports and derive generic setting for ghci
123+-- at the beginning of the examples.
123
124
124:{
125:{
125data Location = Location { lat :: Double
126data Location = Location { lat :: Double
@@ -155,7 +156,13 @@ instance FromJSON Location
155resp <- indexDocument testServer testIndex testMapping exampleTweet (DocId "1")
156resp <- indexDocument testServer testIndex testMapping exampleTweet (DocId "1")
156
157
157-- print resp on success
158-- print resp on success
158−Response {responseStatus = Status {statusCode = 200, statusMessage = "OK"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Type","application/json; charset=UTF-8"),("Content-Length","75")], responseBody = "{\"_index\":\"twitter\",\"_type\":\"tweet\",\"_id\":\"1\",\"_version\":2,\"created\":false}", responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}
159+Response {responseStatus =
160+ Status {statusCode = 200, statusMessage = "OK"}
161+ , responseVersion = HTTP/1.1, responseHeaders =
162+ [("Content-Type","application/json; charset=UTF-8"),
163+ ("Content-Length","75")]
164+ , responseBody = "{\"_index\":\"twitter\",\"_type\":\"tweet\",\"_id\":\"1\",\"_version\":2,\"created\":false}"
165+ , responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}
159
166
160#+END_SRC
167#+END_SRC
161
168