Post: align record better
This commit is contained in:
parent
4221aca52e
commit
32acbcedda
|
@ -6,14 +6,14 @@ import Data.Monoid()
|
||||||
import Data.Text
|
import Data.Text
|
||||||
import Database.SQLite.Simple.FromRow
|
import Database.SQLite.Simple.FromRow
|
||||||
|
|
||||||
data Post = Post {
|
data Post = Post
|
||||||
postID :: Int
|
{ postID :: Int
|
||||||
, postOID :: Text
|
, postOID :: Text
|
||||||
, postBody :: Text
|
, postBody :: Text
|
||||||
, postMarkdown :: Text
|
, postMarkdown :: Text
|
||||||
, postAuthor :: Text
|
, postAuthor :: Text
|
||||||
, postPage :: Int
|
, postPage :: Int
|
||||||
} deriving (Show, Eq)
|
} deriving (Show, Eq)
|
||||||
|
|
||||||
instance FromRow Post where
|
instance FromRow Post where
|
||||||
fromRow = Post <$> field <*> field <*> field <*> field <*> field <*> field
|
fromRow = Post <$> field <*> field <*> field <*> field <*> field <*> field
|
||||||
|
|
Loading…
Reference in New Issue