New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling maybeAuth and friends in version 1.6 #1488
Comments
Great catch, this is definitely a bug in the API. I'll push out a fix shortly I hope. |
I did wonder whether the function I wrote could be made general, but I think it would have to be generated somewhere in the template haskell, since, at least the way I've done it, it bakes in the master route constructor, and therefore the foundation type. Probably not ideal, though.
|
I've pushed a commit which I believe addresses this, a3f1302. Can you give it a shot? |
Great, yes, that works perfectly in the example I was trying (the test for Thanks! |
Awesome, thanks for confirming. I've just released version 1.6.1. |
Am I being totally thick (entirely possible 馃槃)? What is the intended way to upgrade this sort of code to version 1.6, now that
maybeAuth
is inAuthHandler
?I can write a function that runs it, but it messes with the
RunHandlerEnv
, which hardly seems right! Have I missed something?The text was updated successfully, but these errors were encountered: