4 ms·
Not sure why this is posted now, as it's untouched since 2010. Text after first example explains the <|> operator which isn't in the example? Final paragraph r
by RustyRussell 12y ago
Not sure why this is posted now, as it's untouched since 2010. Text after first example explains the <|> operator which isn't in the example? Final paragraph refers to next post, with no link.
Confused,
Rusty.
- unwind 12y agoWhat? 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.