Skip to content

Conversation

@kaol
Copy link
Contributor

@kaol kaol commented May 6, 2025

Add a type variable to SessionManger for Handler's base snaplet.

ISessionManager is rather awkward to use since it uses Snap monad and not Handlers. It precludes Session backends from using another DB or storage oriented snaplet.

Add a type variable to SessionManger for Handler's base snaplet.
@mightybyte
Copy link
Member

Hmmmm, this would be a backwards-incompatible change and this API has been stable for a very long time. I'm reluctant to make a breaking change for this. Perhaps you could do this in a separate library which will give you more freedom?

@kaol
Copy link
Contributor Author

kaol commented May 17, 2025

The user facing change with this is to add one type parameter to SessionManager and if they have their own backend, they could use their existing code with one liftSnap. I really wouldn't like to take the maintenance burden due to something that simple.

If you ever require breaking changes do consider including this by then at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants