2 ms·
What? The <|> is right there on the second line of the two-line snippet: parens :: Parser () parens = (char ‘(’ >> parens >> char ‘)’ >> parens) <|> re
by unwind 12y ago
What? The <|> is right there on the second line of the two-line snippet:
parens :: Parser ()
parens = (char ‘(’ >> parens >> char ‘)’ >> parens) <|> return ()
^
|
hi!
- RustyRussell 12y agoAh, that example scrolls across. Makes more sense now! Was on mobile :( Thanks! Rusty.