Update CI config.

This commit is contained in:
Robin Heggelund Hansen 2024-06-02 20:27:09 +02:00
parent 737e840054
commit 726ee7c036
No known key found for this signature in database
2 changed files with 9 additions and 9 deletions

View File

@ -7,15 +7,15 @@ on:
branches: [ main ]
env:
ghc: "9.4.7"
cabal: "3.8.1.0"
ghc: "9.4.8"
cabal: "3.10.3.0"
jobs:
validate-code-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/run-ormolu@v14
- uses: haskell-actions/run-ormolu@v15
linux:
runs-on: ubuntu-latest

View File

@ -286,12 +286,12 @@ chompExprEnd start (State ops expr args end commentsBefore) =
newStart <- getPosition
if "-" == opName && end /= opStart && opEnd == newStart
then -- negative terms
do
negatedExpr <- term
newEnd <- getPosition
commentsAfter <- Space.chomp E.Space
let arg = A.at opStart newEnd (Src.Negate negatedExpr)
chompExprEnd start (State ops expr ((commentsBefore, arg) : args) newEnd commentsAfter)
do
negatedExpr <- term
newEnd <- getPosition
commentsAfter <- Space.chomp E.Space
let arg = A.at opStart newEnd (Src.Negate negatedExpr)
chompExprEnd start (State ops expr ((commentsBefore, arg) : args) newEnd commentsAfter)
else
let err = E.OperatorRight opName
opComments = SC.BinopsSegmentComments commentsBefore commentsAfterOp