okapi/lib/realworld/App.hs
Rashad Gover 64e40981d3 Add auth
2023-04-23 01:55:44 +00:00

16 lines
357 B
Haskell

{-# LANGUAGE OverloadedRecordDot #-}
{-# LANGUAGE OverloadedStrings #-}
module App where
import Control.Monad.Trans.Reader (ReaderT)
import qualified Database.Redis as Redis
import qualified Database.SQLite.Simple as SQLite
data Config = Config
{ redisConn :: Redis.Connection,
sqliteConn :: SQLite.Connection
}
type Context = ReaderT Config IO