Last active
August 29, 2015 14:25
-
-
Save cdupont/845f6d8b01deac2e3b86 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
import Text.Parsec | |
import Text.Parsec.String | |
test = parse myParser "" "blablaprefixTsuffixbla" | |
myParser :: Parser String | |
myParser = do | |
manyTill letter (string "prefix") | |
manyTill letter (string "suffix" >> many letter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment