Skip to content

Commit

Permalink
fix example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mmn80 committed May 30, 2015
1 parent 02d2af2 commit f8c73ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -109,7 +109,7 @@ flagContributor :: Reference Person -> Transaction l m ()
flagContributor pid = do
is <- postsByContributor pid
forM_ is $ \(bpid, bp) ->
update bpid bp { postTags = postTags bp ++ Sortable "stolen" }
update bpid bp { postTags = postTags bp ++ [ Sortable "stolen" ] }
```

Then you can run these transactions with `runQuery` inside some `MonadIO` context.
Expand Down

0 comments on commit f8c73ce

Please sign in to comment.