]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Httpd.hs
examples/*.hs should use mimeType quasi-quoter.
[Lucu.git] / Network / HTTP / Lucu / Httpd.hs
index 883a9a651f4999a893811670ebb114badc5e4bad..3f2d7330796d7acea4cebf8a39680a24a44fa0b9 100644 (file)
@@ -29,6 +29,7 @@ import Network.HTTP.Lucu.SocketLike as SL
 -- Example:
 --
 -- > {-# LANGUAGE OverloadedStrings #-}
+-- > {-# LANGUAGE QuasiQuotes #-}
 -- > module Main where
 -- > import Network.HTTP.Lucu
 -- > 
@@ -41,7 +42,7 @@ import Network.HTTP.Lucu.SocketLike as SL
 -- > helloWorld :: ResourceDef
 -- > helloWorld = emptyResource {
 -- >                resGet
--- >                  = Just $ do setContentType $ parseMIMEType "text/plain"
+-- >                  = Just $ do setContentType [mimeType| text/plain |]
 -- >                              putChunk "Hello, world!"
 -- >              }
 runHttpd ∷ Config → ResTree → [FallbackHandler] → IO ()