]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/ImplantedSmall.hs
hlint
[Lucu.git] / examples / ImplantedSmall.hs
index f7e8856d6b350ab31320e94315e51059a930e2e7..fe45b89615dcfbeafd9284f965577df76dc51749 100644 (file)
@@ -2,7 +2,9 @@
     UnicodeSyntax
   #-}
 import qualified Data.Collections as C
+import Network
 import Network.HTTP.Lucu
+import Prelude.Unicode
 import SmallFile
 
 main ∷ IO ()
@@ -11,4 +13,4 @@ main = let config = defaultConfig { cnfServerPort = "9999" }
            tree   = C.fromList [ ([], nonGreedy smallFile) ]
        in
          do putStrLn "Access http://localhost:9999/ with your browser."
-            runHttpd config $ resourceMap tree
+            withSocketsDo ∘ runHttpd config $ resourceMap tree