X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FImplantedSmall.hs;fp=examples%2FImplantedSmall.hs;h=ba9b5b9d4cfd336c518e6471924bfe574465ed76;hp=f7e8856d6b350ab31320e94315e51059a930e2e7;hb=251831f3e465eb77666193efcb9b4c02531faa6c;hpb=b7d905bb9034a4f21fa3889e83abff918c43cb58 diff --git a/examples/ImplantedSmall.hs b/examples/ImplantedSmall.hs index f7e8856..ba9b5b9 100644 --- a/examples/ImplantedSmall.hs +++ b/examples/ImplantedSmall.hs @@ -2,6 +2,7 @@ UnicodeSyntax #-} import qualified Data.Collections as C +import Network import Network.HTTP.Lucu import SmallFile @@ -11,4 +12,4 @@ main = let config = defaultConfig { cnfServerPort = "9999" } tree = C.fromList [ ([], nonGreedy smallFile) ] in do putStrLn "Access http://localhost:9999/ with your browser." - runHttpd config $ resourceMap tree + withSocketsDo $ runHttpd config $ resourceMap tree