If I look at the documentation for space
it suggests using void spaceChar
.
However, if I actually try:
x :: Parser ()
x = void spaceChar
I get
* Couldn't match type `Token s0' with `Char'
arising from a use of `spaceChar'
The type variable `s0' is ambiguous
* In the first argument of `void', namely `spaceChar'
In the expression: void spaceChar
In an equation for `x': x = void spaceChar
I think the expression is correct, but there's something I need to do to convince the type checker. How do I get this to work?