Skip to content

Commit f8814d3

Browse files
Change <|> to be right-associative (#80)
* Change <|> to be right-associative * Add changelog entry
1 parent 05e4445 commit f8814d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
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
- Migrate FFI to ES modules (#78 by @kl0tl and @JordanMartinez)
99
- Drop deprecated `MonadZero` instance (#76 by @JordanMartinez)
10+
- Make `<|>` right associative (#80 by @JordanMartinez)
1011

1112
New features:
1213

src/Control/Alt.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import Data.Semigroup (append)
3636
class Functor f <= Alt f where
3737
alt :: forall a. f a -> f a -> f a
3838

39-
infixl 3 alt as <|>
39+
infixr 3 alt as <|>
4040

4141
instance altArray :: Alt Array where
4242
alt = append

0 commit comments

Comments
 (0)