]> gitweb @ CieloNegro.org - Lucu.git/blob - examples/Implanted.hs
03bcbdb1a88593972e17e594ca2b6f6c07bd907b
[Lucu.git] / examples / Implanted.hs
1 {-# LANGUAGE
2     UnicodeSyntax
3   #-}
4 import qualified Data.Collections as C
5 import MiseRafturai
6 import Network
7 import Network.HTTP.Lucu
8
9 main ∷ IO ()
10 main = let config = defaultConfig { cnfServerPort = "9999" }
11            tree   ∷ ResourceTree
12            tree   = C.fromList [ ([], nonGreedy miseRafturai) ]
13        in
14          do putStrLn "Access http://localhost:9999/ with your browser."
15             withSocketsDo $ runHttpd config $ resourceMap tree