Created
May 31, 2017 21:00
-
-
Save Akii/c1dbc1628dbfd70dcc7248f324ff4aea to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- pokeNameLine is "Mimikyu @ Ghostium Z \n" (where \n represents newline) | |
pokeNameLineParser :: Parser (String,String) | |
pokeNameLineParser = do | |
name <- manyTill anyChar (spaces <* char '@' *> spaces) | |
thingAfterAt <- manyTill anyChar newline | |
return (name, thingAfterAt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment