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 -- You can find more information on persistent and how to declare entities
-- at: -- at:
-- http://www.yesodweb.com/book/persistent/ -- 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 , persistent-~backendLower~ >= 0.6 && < 0.7
~packages~ ~packages~
, template-haskell , template-haskell
, hamlet , hamlet >= 0.10 && < 0.11
, shakespeare-css >= 0.10 && < 0.11
, shakespeare-js >= 0.10 && < 0.11
, hjsmin , hjsmin
, transformers , transformers
, data-object , data-object

View File

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

View File

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