hack-contrib-2009.4.52: Hack contrib
Source code
Contents
Index
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
=
String
Source
(>)
::
Category
cat => cat a b -> cat b c -> cat a c
Source
(+)
::
MonadPlus
m => m a -> m a -> m a
Source
(/)
::
FilePath
->
FilePath
->
FilePath
Source
empty_app
::
Application
Source
use
:: [
Middleware
] ->
Middleware
Source
usage: app.use [content_type, cache]
put
::
String
->
String
-> [(
String
,
String
)] -> [(
String
,
String
)]
Source
get
::
String
-> [(
String
,
String
)] ->
Maybe
String
Source
bytesize
::
String
->
Int
Source
note when calling bytesize, you are sure that the string is in [char8] format anyway. so just call length
dummy_middleware
::
Middleware
Source
dummy_app
::
Application
Source
escape_html
::
String
->
String
Source
escape_uri
::
String
->
String
Source
unescape_uri
::
String
->
String
Source
show_status_message
::
Int
->
Maybe
String
Source
httpdate
::
UTCTime
->
String
Source
url2unicode
::
String
->
String
Source
just_lookup
::
Ord
k => k ->
Map
k a -> a
Source
Produced by
Haddock
version 2.4.2