Z3M53KTLZMPOISMHE25SZJSWX5TA37IV33IRE7KNRAD3PKEAEJXQC
dbMain :: a -> ADB IO a -> IO ()
dbMain db adb = do
scotty port $ do
data QConfig
= QConfig
{ port :: Int
, dbName :: String
}
parseConfig :: FilePath -> IO QConfig
parseConfig cfgFile = do
cfg <- C.load [C.Required cfgFile]
QConfig <$> C.require cfg "port" <*> C.require cfg "db"
dbMain :: QConfig -> a -> ADB IO a -> IO ()
dbMain cfg db adb = do
scotty (port cfg) $ do