X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FSSL.hs;h=624ed042647729a3003849c4106d7ef293fc63b1;hp=23de8b04062c4d6b48b80b2b525ae913aab7610c;hb=251831f3e465eb77666193efcb9b4c02531faa6c;hpb=b7d905bb9034a4f21fa3889e83abff918c43cb58 diff --git a/examples/SSL.hs b/examples/SSL.hs index 23de8b0..624ed04 100644 --- a/examples/SSL.hs +++ b/examples/SSL.hs @@ -10,6 +10,7 @@ import Control.Monad.Unicode import qualified Data.ByteString.Lazy.Char8 as Lazy import qualified Data.Collections as C import Data.Time.Clock +import Network import Network.HTTP.Lucu import OpenSSL import OpenSSL.EVP.PKey @@ -37,7 +38,7 @@ main = withOpenSSL $ tree ∷ ResourceTree tree = C.fromList [ ([], nonGreedy helloWorld) ] putStrLn "Access https://localhost:9001/ with your browser." - runHttpd config $ resourceMap tree + withSocketsDo $ runHttpd config $ resourceMap tree helloWorld ∷ Resource helloWorld