-
Notifications
You must be signed in to change notification settings - Fork 14
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NamedRoutes not implemented #40
Comments
I've never actually used Could you upload a branch with the (non-working) code you currently have? |
Thanks for your consideration. I took a bit of time to extract what I tried to do from local specificities. You’ll find the attempt here: https://github.com/immae/servant-checked-exceptions/tree/wip-named-routes I added an "example" file Sorry that I cannot help more, It’s easy to get lost in all the Servant types. Hope this sketch helps a bit! |
I took a look at this, but I don't think I'll have time to grok exactly how For anyone else interested, here is the I'd be happy to merge a PR adding support for |
Thank you for taking the time to look at it. I didn’t make progress so far (further than what I published already in the branch) |
I’m trying to use the servant-checked-exceptions package with NamedRoutes. But I want to add the "Throws" at the top of the api, for instance:
But
Throws
is not able to traverse NamedRoutes types. I tried to implement aHasServer (Throwing '[e] :> NamedRoutes api)
instance, but I seem unable to do it correctly (I tried to find other packages that implement a similar instance too to use as example, in vain). I’d appreciate help for implementing that.Thanks!
The text was updated successfully, but these errors were encountered: