codegen: handle exceptions of a method
[mate.git] / tools / installhaskellenv.sh
index 893cc954f2da406d4952f36c88199602ed3a57dc..906974ed24f9a9b033713cf9fda2c7c18f9632dc 100755 (executable)
@@ -11,6 +11,18 @@ function gitinstall {
        rm -rf tmprepo
 }
 
+#hs: i ran into the problem that cabal install does not execute
+#my Setup.hs - as workaround i invoke runhaskell Setup.hs etc directly
+function gitinstallWithCustomSetup {
+       url=$1
+       git clone $url hs-boehmgc
+       cd hs-boehmgc
+        runhaskell Setup.hs configure --user $CABAL_OPT
+        runhaskell Setup.hs build 
+        runhaskell Setup.hs install
+       cd ..
+}
+
 rm -rf ~/.ghc ~/.cabal
 cabal update
 cabal install cabal-install $CABAL_OPT
@@ -20,6 +32,7 @@ cabal install missingh $CABAL_OPT
 cabal install heap $CABAL_OPT
 cabal install plugins $CABAL_OPT
 cabal install split $CABAL_OPT
+cabal install bimap $CABAL_OPT
 
 # cabal install hs-java $CABAL_OPT
 gitinstall git://wien.tomnetworks.com/hs-java.git
@@ -28,4 +41,6 @@ cabal install disassembler $CABAL_OPT
 # cabal install harpy $CABAL_OPT
 gitinstall git://wien.tomnetworks.com/harpy.git
 
+gitinstallWithCustomSetup git://wien.tomnetworks.com/hs-boehmgc.git 
+
 echo DONE