Skip to content
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

SessionManager is weird #99

Open
mikeplus64 opened this issue Dec 12, 2013 · 0 comments
Open

SessionManager is weird #99

mikeplus64 opened this issue Dec 12, 2013 · 0 comments

Comments

@mikeplus64
Copy link

Currently SessionManager is an existential type that wraps around something that has an instance of ISessionManager. But no instances of ISessionManager are actually exposed, despite the docs linking to a "CookieSession", so it's the existential is a slightly more inefficient way of writing

data SessionManager r = SessionManager
  { load :: r -> Snap r
  , commit :: r -> Snap ()
  , ...
  }

But that isn't very satisfying either.

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

No branches or pull requests

1 participant