]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/ImplantedSmall.hs
Added new example.
[Lucu.git] / examples / ImplantedSmall.hs
diff --git a/examples/ImplantedSmall.hs b/examples/ImplantedSmall.hs
new file mode 100644 (file)
index 0000000..1a65211
--- /dev/null
@@ -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