Post: align record better

This commit is contained in:
Christine Dodrill 2015-07-27 23:47:39 -07:00
parent 4221aca52e
commit 32acbcedda
1 changed files with 8 additions and 8 deletions

View File

@ -6,14 +6,14 @@ import Data.Monoid()
import Data.Text
import Database.SQLite.Simple.FromRow
data Post = Post {
postID :: Int
, postOID :: Text
, postBody :: Text
, postMarkdown :: Text
, postAuthor :: Text
, postPage :: Int
} deriving (Show, Eq)
data Post = Post
{ postID :: Int
, postOID :: Text
, postBody :: Text
, postMarkdown :: Text
, postAuthor :: Text
, postPage :: Int
} deriving (Show, Eq)
instance FromRow Post where
fromRow = Post <$> field <*> field <*> field <*> field <*> field <*> field