ContentsIndex
CGIOutput
Description
Defines the class CGIOutput of data types that can be output from a CGI program.
Synopsis
itell :: Handle -> WithHTML x IO () -> IO a
class CGIOutput a where
cgiPut' :: Handle -> a -> IO ()
cgiPutList :: Handle -> [a] -> IO ()
cgiPut :: CGIOutput a => Handle -> a -> IO ()
Documentation
itell :: Handle -> WithHTML x IO () -> IO a
(internal) takes an output handle and a document without forms and input widgets, displays the document with suitable mime type and encoding, and terminates the program
class CGIOutput a where
Methods
cgiPut' :: Handle -> a -> IO ()
cgiPutList :: Handle -> [a] -> IO ()
Instances
CGIOutput a => CGIOutput [a]
CGIOutput ELEMENT_
CGIOutput Char
CGIOutput FileReference
CGIOutput ResponseFileReference
CGIOutput Status
CGIOutput Location
CGIOutput FreeForm
cgiPut :: CGIOutput a => Handle -> a -> IO ()
Produced by Haddock version 0.6