Closed michalrus closed 6 years ago
Hi!
Thank you for the links, I've pushed the commit that will fix it.
I didn't pay attention to enter
functionality of servant
and natural transformations, and therefore assumed "default" monad, i.e. Handler
.
Right now it should accept any of MonadIO
and MonadThrow
, so you don't have to patch it anymore.
Wonderful! :tada:
I’ll check it out tomorrow at work.
Thank you very much! :heart_eyes_cat:
(Re: enter
→ not really relevant, but it was deprecated in favor of hoistServerWithContext
.)
I confirm this works, thank you once more for your wonderful support!
If someone doesn’t want to use the
ExceptT err IO a
(anti-)pattern (→ https://www.fpcomplete.com/blog/2016/11/exceptions-best-practices-haskell), what should they do?Right now, we’re applying this patch in
default.nix
toservant-auth-cookie
, so that’s not very inconvenient, but… I don’t know. ¯\_(ツ)_/¯