Created
June 27, 2016 12:37
-
-
Save sorki/854a8c04d9d16e81c2d4e010fd0cd081 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yumParser :: Parser [YumMsg] | |
yumParser = (many $ yumEntryParser <* endOfLine) | |
yumEntryParser = | |
Separator <$> takeWhile (=='=') | |
-- Separator <$> string "===" | |
<|> Message <$> takeTill isEndOfLine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
λ: parse yumParser "===\n===\nanother\n"
Done "another\n" [Separator "===",Separator "==="]