More GHC 7.8 fixes (import mempty, derive Typeable).
This commit is contained in:
parent
8a222d4a42
commit
16c4248355
@ -259,11 +259,11 @@ instance ( SS.IsSessionData sess
|
|||||||
-- makeAcidic can't handle type variables, so we have to do
|
-- makeAcidic can't handle type variables, so we have to do
|
||||||
-- everything by hand. :(
|
-- everything by hand. :(
|
||||||
|
|
||||||
data GetSession sess = GetSession (SS.SessionId sess)
|
data GetSession sess = GetSession (SS.SessionId sess) deriving (Typeable)
|
||||||
data DeleteSession sess = DeleteSession (SS.SessionId sess)
|
data DeleteSession sess = DeleteSession (SS.SessionId sess) deriving (Typeable)
|
||||||
data DeleteAllSessionsOfAuthId sess = DeleteAllSessionsOfAuthId SS.AuthId
|
data DeleteAllSessionsOfAuthId sess = DeleteAllSessionsOfAuthId SS.AuthId deriving (Typeable)
|
||||||
data InsertSession sess = InsertSession (SS.Session sess)
|
data InsertSession sess = InsertSession (SS.Session sess) deriving (Typeable)
|
||||||
data ReplaceSession sess = ReplaceSession (SS.Session sess)
|
data ReplaceSession sess = ReplaceSession (SS.Session sess) deriving (Typeable)
|
||||||
|
|
||||||
instance SafeCopy (GetSession sess) where
|
instance SafeCopy (GetSession sess) where
|
||||||
putCopy (GetSession v) = contain $ safePut v
|
putCopy (GetSession v) = contain $ safePut v
|
||||||
|
|||||||
@ -15,6 +15,7 @@ module Web.ServerSession.Backend.Persistent.Internal.Impl
|
|||||||
import Control.Applicative ((<$>), (<*>))
|
import Control.Applicative ((<$>), (<*>))
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
import Control.Monad.IO.Class (liftIO)
|
import Control.Monad.IO.Class (liftIO)
|
||||||
|
import Data.Monoid (mempty)
|
||||||
import Data.Proxy (Proxy(..))
|
import Data.Proxy (Proxy(..))
|
||||||
import Data.Time (UTCTime)
|
import Data.Time (UTCTime)
|
||||||
import Data.Typeable (Typeable)
|
import Data.Typeable (Typeable)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user