X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FImplantedSmall.hs;h=fe45b89615dcfbeafd9284f965577df76dc51749;hp=f7e8856d6b350ab31320e94315e51059a930e2e7;hb=950640dd241222203778f8167943d30fa52f356a;hpb=9be2b946657c536a4363a076235f70728be087c4 diff --git a/examples/ImplantedSmall.hs b/examples/ImplantedSmall.hs index f7e8856..fe45b89 100644 --- a/examples/ImplantedSmall.hs +++ b/examples/ImplantedSmall.hs @@ -2,7 +2,9 @@ UnicodeSyntax #-} import qualified Data.Collections as C +import Network import Network.HTTP.Lucu +import Prelude.Unicode import SmallFile main ∷ IO () @@ -11,4 +13,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