# Please update Haskell image versions under .github/workflows/ci.yml together to use the same GHC version
# (or the CI build will fail)
resolver: lts-18.15
pvp-bounds: both
packages:
- '.'
ghc-options:
# Build with advanced optimizations enabled by default
"$locals": -O2 -Werror
extra-deps:
# As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
# but it has a problem with parsing the `async` keyword. It doesn't allow
# `async` to be used as an object key:
# https://github.com/erikd/language-javascript/issues/131
- language-javascript-0.7.0.0
# The ./.hspec file uses the --times flag, which was added in hspec-2.8.0.
# LTS-18 has only hspec-2.7.
- hspec-2.8.3
- hspec-core-2.8.3
- hspec-discover-2.8.3
# Fix issue with libtinfo.
# See https://github.com/purescript/purescript/issues/4253
- process-1.6.13.1
- Cabal-3.2.1.0
# Not included in Stackage until the lts-19 series
- monoidal-containers-0.6.2.0
nix:
packages:
- zlib
# Test dependencies
- nodejs
- nodePackages.npm
- nodePackages.bower
flags:
aeson-pretty:
lib-only: true
these:
assoc: false
haskeline:
# Avoids a libtinfo dynamic library dependency
terminfo: false