Skip to content

Commit fbd1380

Browse files
Update withError associativity to match Control.Alt (#92)
* Update withError infix to account for `<|>` associativity changes * Update CHANGELOG.md * Update ci.yml to bust CI cache
1 parent 6386881 commit fbd1380

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Cache PureScript dependencies
2323
uses: actions/cache@v2
2424
with:
25-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}-4
2626
path: |
2727
.spago
2828
output
@@ -31,7 +31,7 @@ jobs:
3131
run: spago install
3232

3333
- name: Build source
34-
run: spago build --no-install --purs-args '--censor-lib --strict --censor-codes="UserDefinedWarning"'
34+
run: spago build --no-install
3535

3636
# - name: Run tests
3737
# run: spago test --no-install

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
77
Breaking changes:
88
- Update project and deps to PureScript v0.15.0 (#90 by @JordanMartinez)
99
- Drop deprecated `MonadZero` instance (#90 by @JordanMartinez)
10+
- Change precedence of `withError` operator to accommodate associativity changes in `Control.Alt` (#92 by @thomashoneyman)
1011

1112
New features:
1213

src/StringParser/Combinators.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ assertConsume (Parser p) = Parser \s ->
105105
withError :: forall a. Parser a -> String -> Parser a
106106
withError p msg = p <|> fail msg
107107

108-
infixl 3 withError as <?>
108+
infixl 4 withError as <?>
109109

110110
-- | Parse a string between opening and closing markers.
111111
between :: forall a open close. Parser open -> Parser close -> Parser a -> Parser a

0 commit comments

Comments
 (0)