sudo: false
language: c

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

matrix:
  include:
  - compiler: ": #stack 8.0.2"
    addons: {apt: {packages: [libgmp-dev]}}

before_install:
  - unset CC
  - mkdir -p ~/.local/bin
  - export PATH=$HOME/.local/bin:$PATH
  - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
  - ln -s stack.ghc-8.0-unix.yaml stack.yaml

script:
  - sh build.sh

dist: trusty
sudo: false

language: c

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

matrix:
  include:
    - env: CABALVER="2.0" GHCVER="8.2.1"
      compiler: ": #GHC 8.2.1"
      addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1], sources: [hvr-ghc]}}
    - os: osx
      env: CABALVER="2.0" GHCVER="8.2.1"
      compiler: ": #GHC 8.2.1"

before_install:
  - unset CC
  - export PATH=$HOME/.cabal/bin:$PATH

script:
  - cabal install -j alex
  - cabal install -j happy
  - cabal install -j c2hs
  - cabal new-build

Update Travis script to use `cabal new-build`
Update Travis script to use `cabal new-build`
