-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap Application in custom monad for Raw endpoint
Currently handler `Raw` endpoint for is just an `Application`: a value. This value has no access to the context of an arbitrary monad that may be used instead of the default `Handler`. This commit changes handler type to `m Application`, allowing the user to do arbitrary actions in `m` prior to generating an `Application`. This is useful to do custom logic behind `servant`s back while still having access to the environment of user's monad.
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters