- startKibro :: [PageAssign ()] -> IO ()
- startKibro' :: v -> (IO () -> IO ThreadId) -> [PageAssign v] -> IO ()
- getValue :: Kibro v v
- getURIMatch :: Kibro v MatchResult
- getInputDef :: String -> String -> Kibro v String
- readInputDef :: String -> String -> Kibro v String
- getSess :: String -> Kibro v (Maybe String)
- putSess :: String -> String -> Kibro v ()
- deleteSess :: String -> Kibro v ()
- modifySess :: String -> (String -> String) -> Kibro v (Maybe String)
- getSessDef :: String -> String -> Kibro v String
- modifySessDef :: String -> (String -> String) -> String -> Kibro v String
- readSess :: Read a => String -> Kibro v (Maybe a)
- writeSess :: Show a => String -> a -> Kibro v ()
- modifyRSess :: (Read a, Show a) => String -> (a -> a) -> Kibro v (Maybe a)
- modifyRSessDef :: (Read a, Show a) => String -> (a -> a) -> a -> Kibro v a
- stylesheet :: String -> Html
- (<<$) :: HTML a => (Html -> b) -> a -> b
- type PageAssign v = (String, Page v)
- module Network.CGI
Start Kibro
startKibro :: [PageAssign ()] -> IO ()Source
Same as startKibro', but with value as () and uses forkIO to fork
:: v | The value to be passed to pages |
-> (IO () -> IO ThreadId) | How to fork threads |
-> [PageAssign v] | Page list of (regex,page action) |
-> IO () |
Start Kibro FastCGI server
Value which the Kibro monad holds
Input utilities
getURIMatch :: Kibro v MatchResultSource
getInputDef :: String -> String -> Kibro v StringSource
readInputDef :: String -> String -> Kibro v StringSource
Session utilities
deleteSess :: String -> Kibro v ()Source
Delete a session value
modifySess :: String -> (String -> String) -> Kibro v (Maybe String)Source
Modify a session value, if the value does not exist, no change occurs
getSessDef :: String -> String -> Kibro v StringSource
Get session value or return default value
modifySessDef :: String -> (String -> String) -> String -> Kibro v StringSource
Modify a session value, if the value does not exist, the default value is modified and inserted
modifyRSess :: (Read a, Show a) => String -> (a -> a) -> Kibro v (Maybe a)Source
Same as modifySess, but with Read/Show instance values
modifyRSessDef :: (Read a, Show a) => String -> (a -> a) -> a -> Kibro v aSource
Same as modifySessDef, but with Read/Show instance values
HTML utilities
stylesheet :: String -> HtmlSource
Simple stylesheet element
type PageAssign v = (String, Page v)Source
List of (regular expression,page action) pairs
Module re-exports
module Network.CGI