Skip to content

Commit

Permalink
make post an entity
Browse files Browse the repository at this point in the history
  • Loading branch information
3v0k4 committed Jul 20, 2019
1 parent fb55bd9 commit 5253688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/models.persistentmodels
Expand Up @@ -16,3 +16,6 @@ Comment json -- Adding "json" causes ToJSON and FromJSON instances to be derived
userId UserId Maybe
deriving Eq
deriving Show
Post
title Text
text Textarea
4 changes: 0 additions & 4 deletions src/Handler/Posts.hs
Expand Up @@ -9,10 +9,6 @@ module Handler.Posts where

import Import

data Post =
Post { title :: Text, text :: Textarea }
deriving Show

postForm :: Form Post
postForm =
renderDivs $
Expand Down

0 comments on commit 5253688

Please sign in to comment.