From 3c472d08432d7ab31809ec0dea0cb4c3386bfab8 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 9 Apr 2014 11:36:50 -0700
Subject: [PATCH] More travis tweaks.

---
 .travis.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index dfa0319e2..588b54a71 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,16 +12,16 @@ env:
 before_install:
  - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
  - travis_retry sudo apt-get update
- - travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy
+ - travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER alex happy
  - export PATH=/opt/ghc/$GHCVER/bin:$PATH
+
+install:
+ - cabal-1.18 update
  - |
    if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.1" ]; then
      $CABAL install happy alex
      export PATH=$HOME/.cabal/bin:$PATH
    fi
-
-install:
- - cabal-1.18 update
  - git clone https://github.com/jgm/pandoc-types && cd pandoc-types && cabal-1.18 install && cd ..
  - cabal-1.18 install --only-dependencies --enable-tests