X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FImplantedSmall.hs;h=ba9b5b9d4cfd336c518e6471924bfe574465ed76;hb=060378af59e17e67e3cf79fc35f6e95ff770b9ef;hp=f7e8856d6b350ab31320e94315e51059a930e2e7;hpb=9be2b946657c536a4363a076235f70728be087c4;p=Lucu.git 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