Add User model

This commit is contained in:
Christine Dodrill 2015-07-27 23:47:50 -07:00
parent 32acbcedda
commit 1a31e0146a
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{-# LANGUAGE OverloadedStrings #-}
module Within.DBMemorial.User where
import Control.Applicative
import Data.Monoid()
import Data.Text
import Database.SQLite.Simple.FromRow
data User = User
{ id :: Int
, oID :: Text
, name :: Text
, avatar :: Text
} deriving (Show, Eq)
instance FromRow User where
fromRow = User <$> field <*> field <*> field <*> field