Skip to content

Commit

Permalink
Merge pull request #3 from spicydonuts/master
Browse files Browse the repository at this point in the history
fixed get user by id filter
  • Loading branch information
seanhess committed Aug 21, 2015
2 parents 92fb010 + b4e0f00 commit a50e768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2015-08-19-practical-haskell-json-api.md
Expand Up @@ -269,7 +269,7 @@ Here's what `src/Main.hs` should look like when you're done. Check out the [full

get "/users/:id" $ do
id <- param "id"
json (filter matchesId allUsers)
json $ filter (matchesId id) allUsers

Playing around
--------------
Expand Down

0 comments on commit a50e768

Please sign in to comment.