X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FHelloWorld.hs;h=ad1263b530f133bde94f061b07e578fc212739a8;hp=468de85da37b3dfedad4940d8250248b230f8940;hb=11c3854540c46bfcd9e88c2164ed554f3b6550a5;hpb=636a3b3334f1ede61dc1e6faa2c4a021ea9bbd5c diff --git a/examples/HelloWorld.hs b/examples/HelloWorld.hs index 468de85..ad1263b 100644 --- a/examples/HelloWorld.hs +++ b/examples/HelloWorld.hs @@ -24,7 +24,7 @@ helloWorld , resGet = Just $ do --time <- liftIO $ getClockTime --foundEntity (strongETag "abcde") time - setContentType $ "text" "hello" + setContentType $ read "text/hello" outputChunk "Hello, " outputChunk "World!\n" , resHead = Nothing @@ -32,7 +32,7 @@ helloWorld = Just $ do str1 <- inputChunk 3 str2 <- inputChunk 3 str3 <- inputChunk 3 - setContentType $ "text" "hello" + setContentType $ read "text/hello" output ("[" ++ str1 ++ " - " ++ str2 ++ "#" ++ str3 ++ "]") , resPut = Nothing , resDelete = Nothing