THRIFT-2638 travis: build with Haskell
Patch: John Chee
diff --git a/.travis.yml b/.travis.yml
index 017ac74..93f0a03 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,11 +33,14 @@
  # Small Set
  - CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua --without-d --without-ruby --without-nodejs --without-java"
 
+ # C & C++ & Haskell (for some reason qt4 is required)
+ - CONFIG="--without-csharp --without-java --without-erlang --without-nodejs --without-lua --without-python --without-perl --without-php --without-php-extension --without-ruby --without-go --without-d" GHCVER=7.8.3
+
  # Build All
  # TODO: fix these languages
- - CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua"
+ - CONFIG="--without-erlang --without-python --without-go --without-lua" GHCVER=7.8.3
 
- 
+
 matrix:
   include:
     - compiler: gcc
@@ -61,6 +64,8 @@
 ## Default build sequence:
 before_install:
  - sh contrib/installDependencies.sh 1> /dev/null;
+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
+ - cabal update
 
 install:
  - sh bootstrap.sh;
diff --git a/contrib/installDependencies.sh b/contrib/installDependencies.sh
index ef76d2f..343ea7e 100755
--- a/contrib/installDependencies.sh
+++ b/contrib/installDependencies.sh
@@ -52,9 +52,10 @@
 echo "golang-go golang-go/dashboard boolean false" | debconf-set-selections
 sudo apt-get -y install -qq golang golang-go
 
-# Haskell dependencies TODO
-#sudo apt-get install -qq ghc cabal-install libghc-binary-dev libghc-network-dev libghc-http-dev libghc-hashable-dev libghc-unordered-containers-dev libghc-vector-dev
-#sudo cabal update
+# Haskell dependencies
+sudo add-apt-repository -y ppa:hvr/ghc
+sudo apt-get update
+sudo apt-get install cabal-install-1.20 ghc-$GHCVER
 
 # Lua dependencies
 sudo apt-get install -qq lua5.2 lua5.2-dev
diff --git a/lib/hs/Makefile.am b/lib/hs/Makefile.am
index 70c51c7..3c891f4 100644
--- a/lib/hs/Makefile.am
+++ b/lib/hs/Makefile.am
@@ -26,8 +26,7 @@
   src
 
 all-local:
-	$(CABAL) configure $(CABAL_CONFIGURE_FLAGS)
-	$(CABAL) build
+	$(CABAL) install
 
 install-exec-hook:
 	$(CABAL) install
diff --git a/tutorial/hs/Makefile.am b/tutorial/hs/Makefile.am
index 2b02732..f274eb6 100755
--- a/tutorial/hs/Makefile.am
+++ b/tutorial/hs/Makefile.am
@@ -18,9 +18,8 @@
 #
 
 all-local:
-	$(CABAL) configure $(CABAL_CONFIGURE_FLAGS)
 	$(top_builddir)/compiler/cpp/thrift --gen hs -r $(top_srcdir)/tutorial/tutorial.thrift
-	$(CABAL) build
+	$(CABAL) install
 
 install-exec-hook:
 	$(CABAL) install
@@ -37,4 +36,4 @@
 	dist/build/HaskellServer/HaskellServer
 
 tutorialclient: all
-	dist/build/HaskellClient/HaskellClient
\ No newline at end of file
+	dist/build/HaskellClient/HaskellClient