X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FSSL.hs;h=f78b6c229939c49825fb6ab612ddf783066b3abf;hp=aa8b3a596ffa29031eb136d5b7587976c4ac3f0e;hb=950640dd241222203778f8167943d30fa52f356a;hpb=fffa09842d060c7d738084125dea07783d84aefe diff --git a/examples/SSL.hs b/examples/SSL.hs index aa8b3a5..f78b6c2 100644 --- a/examples/SSL.hs +++ b/examples/SSL.hs @@ -17,6 +17,7 @@ import OpenSSL.EVP.PKey import OpenSSL.RSA import qualified OpenSSL.Session as SSL import OpenSSL.X509 +import Prelude.Unicode main ∷ IO () main = withOpenSSL $ @@ -38,7 +39,7 @@ main = withOpenSSL $ tree ∷ ResourceTree tree = C.fromList [ ([], nonGreedy helloWorld) ] putStrLn "Access https://localhost:9001/ with your browser." - withSocketsDo $ runHttpd config $ resourceMap tree + withSocketsDo ∘ runHttpd config $ resourceMap tree helloWorld ∷ Resource helloWorld