-
Notifications
You must be signed in to change notification settings - Fork 10
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
WebSocket has fewer instances than Raw #2
Comments
Thanks for the report! I'm also still pretty inexperienced with the internals of servant. This library was more like an early experiment. But I'll look into it as soon as I have time. |
Actually I might be wrong about this. It may be that |
So I ran into this issue as well (servant-auth authenticated Websockets not type-checking) and here's what I came up with:
I'm currently using:
At this point I think this needs to stay an orphan as I doubt either servant-auth or servant-websockets will aquire the other as a dependency. Assuming I'm understanding the problem (and solution) correctly, it may be beneficial to change the associated types for |
Any solution to this? I tried @SamProtas's suggestion, but I get |
Hello, I can use |
I don't understand the internals yet but it's clear that the
WebSocket
type is lacking some instances thatRaw
has. When trying to wrapservant-auth
'sAuth
combinator aroundRaw
, things work fine. But if I wrap it aroundWebSocket
I get aNo instance for (HasServer (AddSetCookieApi (AddSetCookieApi WebSocket)) '[CookieSettings, JWTSettings])
.The text was updated successfully, but these errors were encountered: