Skip to content

Commit

Permalink
Merge branch 'postgres' into mongo
Browse files Browse the repository at this point in the history
Conflicts:
	Model.hs
	PROJECTNAME.cabal
  • Loading branch information
snoyberg committed Dec 11, 2012
2 parents 1ec582f + 95e08a7 commit 90c3776
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion Import.hs
Expand Up @@ -14,7 +14,6 @@ import Model as Import
import Settings as Import
import Settings.Development as Import
import Settings.StaticFiles as Import
import Data.Aeson as Import (toJSON)

#if __GLASGOW_HASKELL__ >= 704
import Data.Monoid as Import
Expand Down
5 changes: 4 additions & 1 deletion Model.hs
Expand Up @@ -11,5 +11,8 @@ import Language.Haskell.TH.Syntax
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb.com/book/persistent/
share [mkPersist MkPersistSettings { mpsBackend = ConT ''MongoBackend }, mkMigrate "migrateAll"]
let mongoSettings = (mkPersistSettings (ConT ''MongoBackend))
{ mpsGeneric = False
}
in share [mkPersist mongoSettings]
$(persistFileWith lowerCaseSettings "config/models")
3 changes: 2 additions & 1 deletion PROJECTNAME.cabal
Expand Up @@ -42,7 +42,7 @@ library

build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.4 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-auth >= 1.1 && < 1.2
, yesod-static >= 1.1 && < 1.2
Expand All @@ -53,6 +53,7 @@ library
, text >= 0.11 && < 0.12
, persistent >= 1.1 && < 1.2
, persistent-mongoDB >= 1.1 && < 1.2
, persistent-template >= 1.1.1 && < 1.2
, template-haskell
, hamlet >= 1.1 && < 1.2
, shakespeare-css >= 1.0 && < 1.1
Expand Down

0 comments on commit 90c3776

Please sign in to comment.