gitit

Safe Haskell | Safe-Infered

Network.Gitit.State

# Documentation

gititstate :: IORef GititState

updateGititState :: MonadIO m => (GititState -> GititState) -> m ()

queryGititState :: MonadIO m => (GititState -> a) -> m a

debugMessage :: String -> GititServerPart ()

mkUser :: String -> String -> String -> IO User

genSalt :: IO String

hashPassword :: String -> String -> String

authUser :: String -> String -> GititServerPart Bool

isUser :: String -> GititServerPart Bool

addUser :: String -> User -> GititServerPart ()

adjustUser :: String -> User -> GititServerPart ()

delUser :: String -> GititServerPart ()

writeUserFile :: Config -> IO ()

getUser :: String -> GititServerPart (Maybe User)

isSession :: MonadIO m => SessionKey -> m Bool

setSession :: MonadIO m => SessionKey -> SessionData -> m ()

newSession :: MonadIO m => SessionData -> m SessionKey

delSession :: MonadIO m => SessionKey -> m ()

getSession :: MonadIO m => SessionKey -> m (Maybe SessionData)

getConfig :: GititServerPart Config

getFileStore :: GititServerPart FileStore

getDefaultPageType :: GititServerPart PageType

getDefaultLHS :: GititServerPart Bool