Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make defaultMakeClientRequest not depend on IO (haskell-servant#1789)
The `IO` wrap for the return type of this function was never necessary. Inside the function there’s only `return` call that wraps a _pure_ value into `IO`. There is nothing else that would be related to `IO`. The `IO` wrap was introduced in 9df16f9 In order to not break the API again the wrap was preserved but this change makes it to depend on any `Applicative` instead of `IO`. So it still works in `IO`/`MonadIO` context but allows to use something like `Data.Functor.Identity` to work with _pure_ values. See for more context: haskell-servant#1595
- Loading branch information