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