Fix support for ghc-8.8

remotes/felixonmars/release
Lennart Spitzner 2019-09-29 21:43:47 +02:00
parent 3482f6a36d
commit 89b7655bac
3 changed files with 4 additions and 5 deletions

View File

@ -114,7 +114,6 @@ matrix:
#- env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7 #- env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7
- env: BUILD=stack ARGS="--resolver nightly" - env: BUILD=stack ARGS="--resolver nightly"
- env: BUILD=stack ARGS="" - env: BUILD=stack ARGS=""
- env: BUILD=canew GHCVER=8.8.1 CABALVER=3.0 HAPPYVER=1.19.5 ALEXVER=3.1.7
before_install: before_install:
# Using compiler above sets CC to an invalid value, so unset it # Using compiler above sets CC to an invalid value, so unset it

View File

@ -2,12 +2,11 @@
## 0.12.1.0 -- September 2019 ## 0.12.1.0 -- September 2019
* Support ghc-8.8
* Support for OverloadedLabels extension * Support for OverloadedLabels extension
(thanks to Evan Rutledge Borden @eborden) (thanks to Evan Rutledge Borden @eborden)
* Support for Implicit Params extension (thanks to pepe iborra @pepeiborra) * Support for Implicit Params extension (thanks to pepe iborra @pepeiborra)
* Add flag `--no-user-config` to enable only using manually passed config * Add flag `--no-user-config` to enable only using manually passed config
* Theoretically support ghc-8.8 (brittany itself now compiles with 8.8, but
you need certain patched dependencies)
* Disable the performance test suite by default to prevent spurious failures * Disable the performance test suite by default to prevent spurious failures
on certain CI setups. The github/travis brittany CI still has all tests on certain CI setups. The github/travis brittany CI still has all tests
enabled. See the `brittany-test-perf` flag in the cabal file. enabled. See the `brittany-test-perf` flag in the cabal file.

View File

@ -1,4 +1,5 @@
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DataKinds #-}
{-# LANGUAGE ViewPatterns #-}
module Language.Haskell.Brittany.Internal.Layouters.Expr module Language.Haskell.Brittany.Internal.Layouters.Expr
( layoutExpr ( layoutExpr
@ -112,8 +113,8 @@ layoutExpr lexpr@(L _ expr) = do
-- by wrapping it in docSeq below. We _could_ add alignments for -- by wrapping it in docSeq below. We _could_ add alignments for
-- stuff like lists-of-lambdas. Nothing terribly important..) -- stuff like lists-of-lambdas. Nothing terribly important..)
let shouldPrefixSeparator = case p of let shouldPrefixSeparator = case p of
(L _ LazyPat{}) -> isFirst (ghcDL -> L _ LazyPat{}) -> isFirst
(L _ BangPat{}) -> isFirst (ghcDL -> L _ BangPat{}) -> isFirst
_ -> False _ -> False
patDocSeq <- layoutPat p patDocSeq <- layoutPat p
fixed <- case Seq.viewl patDocSeq of fixed <- case Seq.viewl patDocSeq of