Skip to content

Commit 17b247c

Browse files
authored
Merge pull request #175 from natefaubion/fix-tidyoperators
Fix tidyoperators precedence
2 parents 462b0c6 + 441f8ae commit 17b247c

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.tidyoperators

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,19 @@ Data.Semiring.(+) 6
186186
Data.Tuple.Nested.(/\) type 6
187187
Data.Tuple.Nested.(/\) 6
188188
Math.(%) 7
189+
Parsing.Indent.(<*/>) 11
190+
Parsing.Indent.(<+/>) 9
191+
Parsing.Indent.(<-/>) 10
192+
Parsing.Indent.(<?/>) 12
193+
Parsing.Combinators.($>) 4
194+
Parsing.Combinators.(<#>) 1
195+
Parsing.Combinators.(<$) 4
196+
Parsing.Combinators.(<$>) 4
197+
Parsing.Combinators.(<?>) 4
198+
Parsing.Combinators.(<??>) 3
199+
Parsing.Combinators.(<@>) 4
200+
Parsing.Combinators.(<|>) 3
201+
Parsing.Combinators.(<~?>) 4
189202
Prelude.(~>) type 4
190203
Prelude.(#) 1
191204
Prelude.($) 0
@@ -216,16 +229,3 @@ Prelude.(>=>) 1
216229
Prelude.(>>=) 1
217230
Prelude.(>>>) 9
218231
Prelude.(||) 2
219-
Text.Parsing.Indent.(<*/>) 11
220-
Text.Parsing.Indent.(<+/>) 9
221-
Text.Parsing.Indent.(<-/>) 10
222-
Text.Parsing.Indent.(<?/>) 12
223-
Text.Parsing.Parser.Combinators.($>) 4
224-
Text.Parsing.Parser.Combinators.(<#>) 1
225-
Text.Parsing.Parser.Combinators.(<$) 4
226-
Text.Parsing.Parser.Combinators.(<$>) 4
227-
Text.Parsing.Parser.Combinators.(<?>) 4
228-
Text.Parsing.Parser.Combinators.(<??>) 3
229-
Text.Parsing.Parser.Combinators.(<@>) 4
230-
Text.Parsing.Parser.Combinators.(<|>) 3
231-
Text.Parsing.Parser.Combinators.(<~?>) 4

src/Parsing/Token.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ makeTokenParser (LanguageDef languageDef) =
688688
zeroNumber =
689689
char '0'
690690
*> (hexadecimal <|> octal <|> decimal <|> pure 0)
691-
<?> ""
691+
<?> ""
692692

693693
decimal :: ParserT String m Int
694694
decimal = number 10 Basic.digit

test/Main.purs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ main = do
694694
<|> const "" <$> string " " <?> "7"
695695
<* string " "
696696
$> ""
697-
<?> "8"
697+
<?> "8"
698698
*> string " "
699699
$> ""
700-
<?> "9"
700+
<?> "9"
701701
, fail "test <~?>"
702702
, string " " <~?> \_ -> "21"
703703
, string " " <|> string " " <~?> \_ -> "22"
@@ -707,23 +707,23 @@ main = do
707707
<|> const "" <$> string " " <~?> (\_ -> "27")
708708
<* string " "
709709
$> ""
710-
<~?> (\_ -> "28")
710+
<~?> (\_ -> "28")
711711
*> string " "
712712
$> ""
713-
<~?> \_ -> "29"
713+
<~?> \_ -> "29"
714714
, fail "test <??>"
715715
, "41" <??> string " "
716716
, "42" <??> string " " <|> string " "
717717
, "43" <??> string " " <|> "44" <??> string " "
718718
, "45" <??> "" <$ string " "
719719
<|>
720720
"46"
721-
<??> string " " $> ""
721+
<??> string " " $> ""
722722
<|>
723723
"47"
724-
<??> const "" <$> string " "
725-
<* ("48" <??> string " ")
726-
*> ("49" <??> string " ")
724+
<??> const "" <$> string " "
725+
<* ("48" <??> string " ")
726+
*> ("49" <??> string " ")
727727
]
728728
)
729729
"no"

0 commit comments

Comments
 (0)