From 9c3492ea2b9e5f388b3491bde13f7a2efd8b0ee3 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Mon, 1 Aug 2011 09:38:54 -0700 Subject: [PATCH] update for latest persistent --- yesod-examples/synopsis/persistent.lhs | 4 ++-- yesod-examples/yesod-examples.cabal | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yesod-examples/synopsis/persistent.lhs b/yesod-examples/synopsis/persistent.lhs index c0eb27c9..8d99ff9b 100644 --- a/yesod-examples/synopsis/persistent.lhs +++ b/yesod-examples/synopsis/persistent.lhs @@ -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: diff --git a/yesod-examples/yesod-examples.cabal b/yesod-examples/yesod-examples.cabal index 661640e0..92eaa642 100644 --- a/yesod-examples/yesod-examples.cabal +++ b/yesod-examples/yesod-examples.cabal @@ -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