gameServer/hedgewars-server.hs
changeset 2296 19f2f76dc346
parent 2129 8664554d5547
child 2348 b39d826e1ccd
--- a/gameServer/hedgewars-server.hs	Wed Aug 05 05:37:17 2009 +0000
+++ b/gameServer/hedgewars-server.hs	Wed Aug 05 05:44:13 2009 +0000
@@ -6,7 +6,11 @@
 import qualified Network
 import Control.Concurrent.STM
 import Control.Concurrent.Chan
-import Control.Exception
+#if defined(NEW_EXCEPTIONS)
+import qualified Control.OldException as Exception
+#else
+import qualified Control.Exception as Exception
+#endif
 import System.Log.Logger
 -----------------------------------
 import Opts
@@ -47,7 +51,7 @@
 	let serverInfo = serverInfo'
 #endif
 
-	bracket
+	Exception.bracket
 		(Network.listenOn $ Network.PortNumber $ listenPort serverInfo)
 		(sClose)
 		(startServer serverInfo)