Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created October 20, 2009 20:31
Show Gist options
  • Save abuiles/214588 to your computer and use it in GitHub Desktop.
Save abuiles/214588 to your computer and use it in GitHub Desktop.
pLettera :: Parser Char Char
pLettera = P (\inp -> case inp of
( s:ss )
| s == 'a' -> [('a',ss)]
| otherwise -> []
otherwise -> []
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment