Skip to content

Instantly share code, notes, and snippets.

@hiratara
Created July 1, 2012 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiratara/3027782 to your computer and use it in GitHub Desktop.
Save hiratara/3027782 to your computer and use it in GitHub Desktop.
A patch to run monadius on Haskell Platform 2012.2.0.0 for Mac OS X
The author of monadius is @nushio.
You can download monadius from following URL.
http://www.geocities.jp/takascience/haskell/monadius_en.html
http://www.geocities.jp/takascience/haskell/monadius_ja.html
diff -ur monadius.orig/src/main.hs monadius/src/main.hs
--- monadius.orig/src/main.hs 2005-06-04 17:31:48.000000000 +0900
+++ monadius/src/main.hs 2012-07-01 19:01:42.000000000 +0900
@@ -12,7 +12,7 @@
import Graphics.UI.GLUT hiding (position)
import Graphics.Rendering.OpenGL.GLU
-import Control.Exception
+import Control.OldException
import Control.Monad
import System.Exit
import Prelude hiding (catch)
@@ -47,7 +47,7 @@
loadReplay filename = readFile filename >>= (return.read)
main = do
- args <-getArgs
+ (_, args) <- getArgsAndInitialize
putDebugStrLn $ show args
keystate <- newIORef []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment