mirror of
https://github.com/gren-lang/compiler.git
synced 2024-10-03 20:17:48 +03:00
Update CI config.
This commit is contained in:
parent
737e840054
commit
726ee7c036
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user