update for latest persistent

This commit is contained in:
Greg Weber 2011-08-01 09:38:54 -07:00
parent 2ed25bd9fc
commit 9c3492ea2b
2 changed files with 3 additions and 3 deletions

View File

@ -24,10 +24,10 @@ This example uses the sqlite backend for Persistent, since it can run in-memory
> update key [PersonAge 26]
> p2 <- get key
> liftIO $ print p2
> p3 <- selectList [PersonNameEq "Michael"] [] 0 0
> p3 <- selectList [PersonName ==. "Michael"] []
> liftIO $ print p3
> delete key
> p4 <- selectList [PersonNameEq "Michael"] [] 0 0
> p4 <- selectList [PersonName ==. "Michael"] []
> liftIO $ print p4
The output of the above is:

View File

@ -53,7 +53,7 @@ Executable yesod-form
Executable yesod-persistent-synopsis
Main-is: synopsis/persistent.lhs
Build-depends: transformers >= 0.2.1 && < 0.3,
persistent-sqlite,
persistent-sqlite >= 0.6,
persistent-template
Executable yesod-hamlet-synopsis