-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Add OperationId combinator. #1277
Add OperationId combinator. #1277
Conversation
I don't think this belongs to cc @alpmestan |
I have to admit I'm a little bit "bothered" the swagger-specific nature of this combinator. Any chance this could be useful elsewhere than -swagger? |
I don't think it will have any use beyond swagger. Perhaps I can move it to the |
I see this is a duplicate of #1237. Perhaps I should just close this and let the existing PR deal with the issue. |
I think this definitely makes sense as its own little lightweight package. I have myself published a couple of such packages, to avoid "bloating" the core libs with deps and code that only a tiny fraction of users might ever care about (servant-ede, servant-generate, ...). |
It could be done, but the problem with custom combinators is that all packages that interact with servant apis have to support it. By adding IMO Hackage, Cabal and GHC should holistically solve the expression problem (of orphan instances), but I can't tell whether that would be within the ambitions of the ecosystem. |
@roberth Do you reckon this combinator should rather live in |
I don't, because then we'd have to convince all the other libraries to add the package for the sole reason of importing |
No description provided.