Skip to content

Commit

Permalink
Derive Typeable for User (upcoming Yesod 1.2 change)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Mar 11, 2013
1 parent 1e74505 commit ee74d26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions PROJECTNAME.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ library
FlexibleContexts
EmptyDataDecls
NoMonomorphismRestriction
DeriveDataTypeable

build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
Expand Down
1 change: 1 addition & 0 deletions config/models
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ User
ident Text
password Text Maybe
UniqueUser ident
deriving Typeable
Email
email Text
user UserId Maybe
Expand Down

0 comments on commit ee74d26

Please sign in to comment.