Trivial parsec example produces a type error

Viewed 1511

I'm trying to get this trivial parsec code to compile

import Text.Parsec
simple = letter

but I keep getting this error

No instance for (Stream s0 m0 Char)
  arising from a use of `letter'
Possible fix: add an instance declaration for (Stream s0 m0 Char)
In the expression: letter
In an equation for `simple': simple = letter
1 Answers
Related