env:
 - GHCVER=7.0.4
 - GHCVER=7.2.2
 - GHCVER=7.4.2
 - GHCVER=7.6.3
 - GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq
 - sudo apt-get install -qq cabal-install-1.18 ghc-$GHCVER
 - export PATH="/opt/ghc/$GHCVER/bin:$PATH"

install:
 - cabal-1.18 update
 - ghc --version
 - ghc-pkg list

script:
 - cabal-1.18 install --enable-documentation
 - cabal-1.18 sdist
 - ghc-pkg list

env:
 - GHCVER=7.0.4
 - GHCVER=7.2.2
 - GHCVER=7.4.2
 - GHCVER=7.6.3
 - GHCVER=7.8.1
 - GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq
 - sudo apt-get install -qq cabal-install-1.18 ghc-$GHCVER
 - export PATH="/opt/ghc/$GHCVER/bin:$PATH"

install:
 - cabal-1.18 update
 - ghc --version
 - ghc-pkg list

script:
 - cabal-1.18 install --enable-documentation
 - cabal-1.18 sdist
 - ghc-pkg list

Test with GHC 7.8.1 on Travis CI, too.
Test with GHC 7.8.1 on Travis CI, too.
