]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/SSL.hs
Unfoldable Dispatcher
[Lucu.git] / examples / SSL.hs
index 6df2ab714e37c5ce4c265c8d10c1f176b5632894..b9b76a3919e7c12f7930c08b2714f5d47d568637 100644 (file)
@@ -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