Fix scaffolded site
This commit is contained in:
parent
f6ab5c05dc
commit
2435dc0b82
@ -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")
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -55,6 +55,8 @@ executable ~project~
|
||||
, text
|
||||
, template-haskell
|
||||
, hamlet
|
||||
, shakespeare-css
|
||||
, shakespeare-js
|
||||
, transformers
|
||||
, data-object
|
||||
, data-object-yaml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user