]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Implanted.hs
Added an example of lucu-implant-file.
[Lucu.git] / examples / Implanted.hs
diff --git a/examples/Implanted.hs b/examples/Implanted.hs
new file mode 100644 (file)
index 0000000..633e40a
--- /dev/null
@@ -0,0 +1,11 @@
+import MiseRafturai
+import Network
+import Network.HTTP.Lucu
+
+main :: IO ()
+main = let config    = defaultConfig { cnfServerPort = PortNumber 9999 }
+           resources = mkResTree [ ([], miseRafturai) ]
+       in
+         do putStrLn "Access http://localhost:9999/ with your browser."
+            runHttpd config resources
+                                   
\ No newline at end of file