Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .tidyoperators
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,19 @@ Data.Semiring.(+) 6
Data.Tuple.Nested.(/\) type 6
Data.Tuple.Nested.(/\) 6
Math.(%) 7
Parsing.Indent.(<*/>) 11
Parsing.Indent.(<+/>) 9
Parsing.Indent.(<-/>) 10
Parsing.Indent.(<?/>) 12
Parsing.Combinators.($>) 4
Parsing.Combinators.(<#>) 1
Parsing.Combinators.(<$) 4
Parsing.Combinators.(<$>) 4
Parsing.Combinators.(<?>) 4
Parsing.Combinators.(<??>) 3
Parsing.Combinators.(<@>) 4
Parsing.Combinators.(<|>) 3
Parsing.Combinators.(<~?>) 4
Prelude.(~>) type 4
Prelude.(#) 1
Prelude.($) 0
Expand Down Expand Up @@ -216,16 +229,3 @@ Prelude.(>=>) 1
Prelude.(>>=) 1
Prelude.(>>>) 9
Prelude.(||) 2
Text.Parsing.Indent.(<*/>) 11
Text.Parsing.Indent.(<+/>) 9
Text.Parsing.Indent.(<-/>) 10
Text.Parsing.Indent.(<?/>) 12
Text.Parsing.Parser.Combinators.($>) 4
Text.Parsing.Parser.Combinators.(<#>) 1
Text.Parsing.Parser.Combinators.(<$) 4
Text.Parsing.Parser.Combinators.(<$>) 4
Text.Parsing.Parser.Combinators.(<?>) 4
Text.Parsing.Parser.Combinators.(<??>) 3
Text.Parsing.Parser.Combinators.(<@>) 4
Text.Parsing.Parser.Combinators.(<|>) 3
Text.Parsing.Parser.Combinators.(<~?>) 4
2 changes: 1 addition & 1 deletion src/Parsing/Token.purs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ makeTokenParser (LanguageDef languageDef) =
zeroNumber =
char '0'
*> (hexadecimal <|> octal <|> decimal <|> pure 0)
<?> ""
<?> ""

decimal :: ParserT String m Int
decimal = number 10 Basic.digit
Expand Down
16 changes: 8 additions & 8 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,10 @@ main = do
<|> const "" <$> string " " <?> "7"
<* string " "
$> ""
<?> "8"
<?> "8"
*> string " "
$> ""
<?> "9"
<?> "9"
, fail "test <~?>"
, string " " <~?> \_ -> "21"
, string " " <|> string " " <~?> \_ -> "22"
Expand All @@ -707,23 +707,23 @@ main = do
<|> const "" <$> string " " <~?> (\_ -> "27")
<* string " "
$> ""
<~?> (\_ -> "28")
<~?> (\_ -> "28")
*> string " "
$> ""
<~?> \_ -> "29"
<~?> \_ -> "29"
, fail "test <??>"
, "41" <??> string " "
, "42" <??> string " " <|> string " "
, "43" <??> string " " <|> "44" <??> string " "
, "45" <??> "" <$ string " "
<|>
"46"
<??> string " " $> ""
<??> string " " $> ""
<|>
"47"
<??> const "" <$> string " "
<* ("48" <??> string " ")
*> ("49" <??> string " ")
<??> const "" <$> string " "
<* ("48" <??> string " ")
*> ("49" <??> string " ")
]
)
"no"
Expand Down