X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FImplantedSmall.hs;h=a985cae482d20037d125cda916bd3dbef756f33b;hb=72a3e24a952616e32845eeb4fc05048e841c91a2;hp=1a652111237fba6fa022ed50af437a3a29a80355;hpb=ea8f823ffa1004582d403c69f52a83e20486269f;p=Lucu.git diff --git a/examples/ImplantedSmall.hs b/examples/ImplantedSmall.hs index 1a65211..a985cae 100644 --- a/examples/ImplantedSmall.hs +++ b/examples/ImplantedSmall.hs @@ -1,11 +1,13 @@ -import Network +{-# LANGUAGE + UnicodeSyntax + #-} import Network.HTTP.Lucu import SmallFile -main :: IO () -main = let config = defaultConfig { cnfServerPort = PortNumber 9999 } +main ∷ IO () +main = let config = defaultConfig { cnfServerPort = "9999" } resources = mkResTree [ ([], smallFile) ] in do putStrLn "Access http://localhost:9999/ with your browser." - runHttpd config resources + runHttpd config resources [] \ No newline at end of file