File: error.hs

package info (click to toggle)
haskell-cgi 3001.5.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: haskell: 818; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
import Network.CGI (CGI, CGIResult, runCGI, liftIO, output, handleErrors)

cgiMain :: CGI CGIResult
cgiMain = liftIO (readFile "foo") >> output "bar"

main :: IO ()
main = runCGI (handleErrors cgiMain)