diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 242a156..0dbaba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Cache PureScript dependencies uses: actions/cache@v2 with: - key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} + key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}-4 path: | .spago output @@ -31,7 +31,7 @@ jobs: run: spago install - name: Build source - run: spago build --no-install --purs-args '--censor-lib --strict --censor-codes="UserDefinedWarning"' + run: spago build --no-install # - name: Run tests # run: spago test --no-install diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f12471..26d5b5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based Breaking changes: - Update project and deps to PureScript v0.15.0 (#90 by @JordanMartinez) - Drop deprecated `MonadZero` instance (#90 by @JordanMartinez) +- Change precedence of `withError` operator to accommodate associativity changes in `Control.Alt` (#92 by @thomashoneyman) New features: diff --git a/src/StringParser/Combinators.purs b/src/StringParser/Combinators.purs index 466e8f4..04b7682 100644 --- a/src/StringParser/Combinators.purs +++ b/src/StringParser/Combinators.purs @@ -105,7 +105,7 @@ assertConsume (Parser p) = Parser \s -> withError :: forall a. Parser a -> String -> Parser a withError p msg = p <|> fail msg -infixl 3 withError as +infixl 4 withError as -- | Parse a string between opening and closing markers. between :: forall a open close. Parser open -> Parser close -> Parser a -> Parser a