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
|
-- 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")
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user