I guys,
I'm trying to implement the Servant-Swagger UI.
I use this example:
However, I use a special monad for my Server with ReaderT:
type App = ReaderT AppConfig Servant.Handler
type API =AppAPI :<|> SwaggerSchemaUI "swagger-ui" "swagger.json"
type AppAPI = ....
server :: ServerT API App
server = server' :<|> (swaggerSchemaUIServer swaggerDoc)
server' :: ServerT AppAPI App
server' = ....
So how should I lift swaggerSchemaUIServer to my new monad?
This is the function definition:
Thanks a lot!
Corentin