hack-contrib-2009.4.52: Hack contribSource codeContentsIndex
Hack.Contrib.Utils
Synopsis
type UnicodeString = String
(>) :: Category cat => cat a b -> cat b c -> cat a c
(+) :: MonadPlus m => m a -> m a -> m a
(/) :: FilePath -> FilePath -> FilePath
empty_app :: Application
use :: [Middleware] -> Middleware
put :: String -> String -> [(String, String)] -> [(String, String)]
get :: String -> [(String, String)] -> Maybe String
bytesize :: String -> Int
dummy_middleware :: Middleware
dummy_app :: Application
escape_html :: String -> String
escape_uri :: String -> String
unescape_uri :: String -> String
show_status_message :: Int -> Maybe String
httpdate :: UTCTime -> String
url2unicode :: String -> String
just_lookup :: Ord k => k -> Map k a -> a
Documentation
type UnicodeString = StringSource
(>) :: Category cat => cat a b -> cat b c -> cat a cSource
(+) :: MonadPlus m => m a -> m a -> m aSource
(/) :: FilePath -> FilePath -> FilePathSource
empty_app :: ApplicationSource
use :: [Middleware] -> MiddlewareSource
usage: app.use [content_type, cache]
put :: String -> String -> [(String, String)] -> [(String, String)]Source
get :: String -> [(String, String)] -> Maybe StringSource
bytesize :: String -> IntSource
note when calling bytesize, you are sure that the string is in [char8] format anyway. so just call length
dummy_middleware :: MiddlewareSource
dummy_app :: ApplicationSource
escape_html :: String -> StringSource
escape_uri :: String -> StringSource
unescape_uri :: String -> StringSource
show_status_message :: Int -> Maybe StringSource
httpdate :: UTCTime -> StringSource
url2unicode :: String -> StringSource
just_lookup :: Ord k => k -> Map k a -> aSource
Produced by Haddock version 2.4.2