Fix scaffolded site

This commit is contained in:
Michael Snoyman 2011-08-09 18:22:39 +03:00
parent f6ab5c05dc
commit 2435dc0b82
4 changed files with 7 additions and 3 deletions

View File

@ -8,5 +8,5 @@ import Data.Text (Text)
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb.com/book/persistent/
share [mkPersist, mkMigrate "migrateAll"] $(persistFile "config/models")
share [mkPersist sqlSettings, mkMigrate "migrateAll"] $(persistFile "config/models")

View File

@ -67,7 +67,9 @@ executable ~project~
, persistent-~backendLower~ >= 0.6 && < 0.7
~packages~
, template-haskell
, hamlet
, hamlet >= 0.10 && < 0.11
, shakespeare-css >= 0.10 && < 0.11
, shakespeare-js >= 0.10 && < 0.11
, hjsmin
, transformers
, data-object

View File

@ -127,7 +127,7 @@ instance Yesod ~sitearg~ where
-- How to run database actions.
instance YesodPersist ~sitearg~ where
type YesodDB ~sitearg~ = SqlPersist
type YesodPersistBackend ~sitearg~ = SqlPersist
runDB f = liftIOHandler
$ fmap connPool getYesod >>= Settings.runConnectionPool f

View File

@ -55,6 +55,8 @@ executable ~project~
, text
, template-haskell
, hamlet
, shakespeare-css
, shakespeare-js
, transformers
, data-object
, data-object-yaml