SessionManager is weird #99

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

Projects

None yet

1 participant

@mikeplus64

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