Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created October 20, 2009 20:34
Show Gist options
  • Save abuiles/214593 to your computer and use it in GitHub Desktop.
Save abuiles/214593 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 -> []
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment