mateamt/src/Types/Reader.hs
2019-05-06 23:41:15 +02:00

18 lines
336 B
Haskell

module Types.Reader where
import Servant (Handler)
import Control.Monad.Reader (ReaderT)
import Database.PostgreSQL.Simple (Connection)
-- internal imports
import Types.Auth (TicketStore)
data ReadState = ReadState
{ rsConnection :: Connection
, rsTicketStore :: TicketStore
}
type MateHandler = ReaderT ReadState Handler