haskell-servant / servant-swagger-ui

Provide embedded swagger UI for servant and swagger
46 stars 34 forks source link

Lift restriction of swagger spec delivery from Handler to any Monad #82

Closed dmjio closed 3 years ago

dmjio commented 3 years ago
dmjio commented 3 years ago

@phadej @fisx @arianvp

Ran into an issue at work where we can't use custom monads when serving stuff with servant-swagger-ui, this patch fixes that, and is backwards compatible.

Would love to upstream this with everybody's approval.

dmjio commented 3 years ago

Pulling in @fizruk as well

dmjio commented 3 years ago

@haskell-servant/maintainers. If nobody has any problems with this, I will just merge by end of day.

fizruk commented 3 years ago

Looks great, thank you! Sorry for late response 😅