diff --git a/Model.hs b/Model.hs index ed539d5..19e0640 100644 --- a/Model.hs +++ b/Model.hs @@ -4,7 +4,7 @@ import Prelude import Yesod import Data.Text (Text) import Database.Persist.Quasi - +import Data.Typeable (Typeable) -- You can define all of your database entities in the entities file. -- You can find more information on persistent and how to declare entities diff --git a/PROJECTNAME.cabal b/PROJECTNAME.cabal index f3be8fd..3e43c01 100644 --- a/PROJECTNAME.cabal +++ b/PROJECTNAME.cabal @@ -39,6 +39,7 @@ library FlexibleContexts EmptyDataDecls NoMonomorphismRestriction + DeriveDataTypeable build-depends: base >= 4 && < 5 -- , yesod-platform >= 1.1 && < 1.2 diff --git a/config/models b/config/models index c6e732e..cd7d6ca 100644 --- a/config/models +++ b/config/models @@ -2,6 +2,7 @@ User ident Text password Text Maybe UniqueUser ident + deriving Typeable Email email Text user UserId Maybe