diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-16 12:30:28 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-16 12:30:28 +0000 |
commit | 1d4a9a462f6eb42e607a502b288aeaf402f84e98 (patch) | |
tree | 98004225ebe162ecdbadd32f2e41b4c7e101beeb | |
parent | e6ce77f180aa58c05368e2baf6107c12d8ac5bbf (diff) | |
download | sariulclocks-1d4a9a462f6eb42e607a502b288aeaf402f84e98.tar.gz |
crude sessions
-rw-r--r-- | src/Types/Session.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Types/Session.hs b/src/Types/Session.hs new file mode 100644 index 0000000..25df029 --- /dev/null +++ b/src/Types/Session.hs @@ -0,0 +1,17 @@ +module Types.Session where + +import Types.Classes +import Types.Clocks +import Network.CGI.Cookie +import System.Time (CalendarTime) + +data Session = Session + { currentClass :: Maybe Class + , currentClock :: Clock } + deriving (Eq) + +makeClassCookie :: CalendarTime -> Session -> Cookie +makeClassCookie now session = undefined + +makeClockCookie :: CalendarTime -> Session -> Cookie +makeClockCookie now session = undefined |