Permalink
Browse files

Export everything necessary to write a backend for the session snaplet.

  • Loading branch information...
1 parent 4d139ed commit f928db27ca4c75931b6423d7b06a84bca2c1fd91 @mightybyte mightybyte committed Apr 5, 2012
View
1 src/Snap/Snaplet/Auth/AuthManager.hs
@@ -27,7 +27,6 @@ import Web.ClientSession
import Snap.Snaplet
import Snap.Snaplet.Session
-import Snap.Snaplet.Session.Common
import Snap.Snaplet.Auth.Types
View
1 src/Snap/Snaplet/Auth/Backends/JsonFile.hs
@@ -32,7 +32,6 @@ import Snap.Snaplet
import Snap.Snaplet.Auth.Types
import Snap.Snaplet.Auth.AuthManager
import Snap.Snaplet.Session
-import Snap.Snaplet.Session.Common
View
2 src/Snap/Snaplet/Auth/Handlers.hs
@@ -29,8 +29,6 @@ import Snap.Snaplet
import Snap.Snaplet.Auth.AuthManager
import Snap.Snaplet.Auth.Types
import Snap.Snaplet.Session
-import Snap.Snaplet.Session.Common
-import Snap.Snaplet.Session.SecureCookie
------------------------------------------------------------------------------
View
8 src/Snap/Snaplet/Session.hs
@@ -1,5 +1,6 @@
module Snap.Snaplet.Session
- ( SessionManager
+ ( SessionManager(..)
+ , ISessionManager(..)
, withSession
, commitSession
, setInSession
@@ -9,6 +10,9 @@ module Snap.Snaplet.Session
, sessionToList
, resetSession
, touchSession
+
+ , module Snap.Snaplet.Session.Common
+ , module Snap.Snaplet.Session.SecureCookie
) where
------------------------------------------------------------------------------
@@ -18,6 +22,8 @@ import Data.Text (Text)
import Snap.Core
------------------------------------------------------------------------------
import Snap.Snaplet
+import Snap.Snaplet.Session.Common
+import Snap.Snaplet.Session.SecureCookie
import Snap.Snaplet.Session.SessionManager
( SessionManager(..), ISessionManager(..) )
import qualified Snap.Snaplet.Session.SessionManager as SM
View
4 src/Snap/Snaplet/Session/Backends/CookieSession.hs
@@ -22,9 +22,7 @@ import Snap.Core (Snap)
import Web.ClientSession
------------------------------------------------------------------------------
import Snap.Snaplet
-import Snap.Snaplet.Session.Common
-import Snap.Snaplet.Session.SessionManager
-import Snap.Snaplet.Session.SecureCookie
+import Snap.Snaplet.Session
------------------------------------------------------------------------------

0 comments on commit f928db2

Please sign in to comment.