

env:
 - GHCVER=7.6.3
 - GHCVER=7.8.2
 - GHCVER=head

matrix:
  fast_finish: true
  allow_failures:
   - env: GHCVER=head

cache:
  directories:
   - $HOME/.cabal
   - $HOME/.ghc

before_install:
 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
 - travis_retry sudo add-apt-repository -y "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty main"
 - travis_retry sudo apt-get update
 - travis_retry sudo apt-get install cabal-install-1.20 ghc-$GHCVER
 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
 - travis_retry sudo apt-get install libleveldb-dev -t trusty

install:
 - cabal --version
 - cabal update
 - cabal install -j --enable-tests --enable-benchmarks --only-dependencies

script:
 - cabal configure --enable-tests --enable-benchmarks -v2
 - cabal build
 - cabal test
 - cabal check
 - cabal sdist


language: haskell

env:
 - GHCVER=7.6.3
 - GHCVER=7.8.2
 - GHCVER=head

matrix:
  fast_finish: true
  allow_failures:
   - env: GHCVER=head

cache:
  directories:
   - $HOME/.cabal
   - $HOME/.ghc

before_install:
 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
 - travis_retry sudo add-apt-repository -y "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty main"
 - travis_retry sudo apt-get update
 - travis_retry sudo apt-get install cabal-install-1.20 ghc-$GHCVER
 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
 - travis_retry sudo apt-get install libleveldb-dev -t trusty

install:
 - cabal --version
 - cabal update
 - cabal install -j --enable-tests --enable-benchmarks --only-dependencies

script:
 - cabal configure --enable-tests --enable-benchmarks -v2
 - cabal build
 - cabal test
 - cabal check
 - cabal sdist


Set language to haskell in for Travis CI builds
Set language to haskell in for Travis CI builds

It was defaulting to ruby with no major side-effects, but best to be idiomatic
