Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ServantWrapException Source #
Exception e => Wrap ServantErr e |
type MkApplication = YamContext -> Application Source #
type ApiToApplication = forall s. (HasServer s '[YamContext], HasSwagger s) => API s -> MkApplication Source #
mkServe :: (HasServer api '[YamContext], HasSwagger api) => API api -> YamContext -> Application Source #
addApi :: (HasServer api '[YamContext], HasSwagger api, HasServer new '[YamContext], HasSwagger new) => API api -> Bool -> API new -> ApiToApplication -> MkApplication Source #
startSimpleJob :: InitializeYamContext -> MigrateSQL -> LoadYamJobs -> IO () Source #
startMain :: InitializeYamContext -> DataSourceProviders -> MigrateSQL -> LoadYamJobs -> MkApplication -> IO () Source #
type InitializeYamContext = YamContext -> IO YamContext Source #
type DataSourceProviders = [DataSourceProvider (AppM IO) ()] Source #
type MigrateSQL = AppM IO () Source #