serversession-backend-persistent-1.0.4: Storage backend for serversession using persistent and an RDBMS.

Safe HaskellNone
LanguageHaskell98

Web.ServerSession.Backend.Persistent.Internal.Types

Contents

Description

Internal module exposing the guts of the package. Use at your own risk. No API stability guarantees apply.

Also exports orphan instances of PersistField{,Sql} SessionId.

Synopsis

Documentation

Orphan instances

SessionId

instance PersistField    (SessionId sess)
instance PersistFieldSql (SessionId sess)

Does not do sanity checks (DB is trusted).

instance PersistField    SessionMap
instance PersistFieldSql SessionMap
instance Serialize       SessionMap
instance FromJSON        SessionMap
instance ToJSON          SessionMap

Orphan instances

ToJSON SessionMap Source # 

Methods

toJSON :: SessionMap -> Value

toEncoding :: SessionMap -> Encoding

toJSONList :: [SessionMap] -> Value

toEncodingList :: [SessionMap] -> Encoding

PersistField SessionMap Source # 

Methods

toPersistValue :: SessionMap -> PersistValue

fromPersistValue :: PersistValue -> Either Text SessionMap

PersistFieldSql SessionMap Source # 

Methods

sqlType :: Proxy * SessionMap -> SqlType

FromJSON SessionMap Source # 

Methods

parseJSON :: Value -> Parser SessionMap

parseJSONList :: Value -> Parser [SessionMap]

Serialize SessionMap Source # 

Methods

put :: Putter SessionMap

get :: Get SessionMap

PersistField (SessionId sess) Source # 

Methods

toPersistValue :: SessionId sess -> PersistValue

fromPersistValue :: PersistValue -> Either Text (SessionId sess)

PersistFieldSql (SessionId sess) Source # 

Methods

sqlType :: Proxy * (SessionId sess) -> SqlType