X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FSSL.hs;h=b9b76a3919e7c12f7930c08b2714f5d47d568637;hp=6df2ab714e37c5ce4c265c8d10c1f176b5632894;hb=b22e702f8161447a460847c6e6c97104c150534f;hpb=2089e7b8c07ae67292073b4113eb14d858a4a2c0 diff --git a/examples/SSL.hs b/examples/SSL.hs index 6df2ab7..b9b76a3 100644 --- a/examples/SSL.hs +++ b/examples/SSL.hs @@ -1,6 +1,7 @@ {-# LANGUAGE OverloadedStrings , PackageImports + , QuasiQuotes , UnicodeSyntax #-} import Control.Applicative @@ -40,7 +41,7 @@ helloWorld ∷ ResourceDef helloWorld = emptyResource { resGet - = Just $ do setContentType $ parseMIMEType "text/plain" + = Just $ do setContentType [mimeType| text/plain |] putChunk "getRemoteCertificate = " cert ← do cert ← getRemoteCertificate case cert of