X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FImplantedSmall.hs;h=2f8f066d8e2a8681385ba95e63e85de58caa17b7;hb=a122079f1e16c8da8e207a30e37f88362286508f;hp=ba9b5b9d4cfd336c518e6471924bfe574465ed76;hpb=251831f3e465eb77666193efcb9b4c02531faa6c;p=Lucu.git diff --git a/examples/ImplantedSmall.hs b/examples/ImplantedSmall.hs index ba9b5b9..2f8f066 100644 --- a/examples/ImplantedSmall.hs +++ b/examples/ImplantedSmall.hs @@ -2,14 +2,16 @@ UnicodeSyntax #-} import qualified Data.Collections as C +import Data.Default import Network import Network.HTTP.Lucu +import Prelude.Unicode import SmallFile main ∷ IO () -main = let config = defaultConfig { cnfServerPort = "9999" } +main = let config = def { cnfServerPort = "9999" } tree ∷ ResourceTree tree = C.fromList [ ([], nonGreedy smallFile) ] in do putStrLn "Access http://localhost:9999/ with your browser." - withSocketsDo $ runHttpd config $ resourceMap tree + withSocketsDo ∘ runHttpd config $ resourceMap tree