
* Max Bolingbroke
On 19 February 2011 09:27, Roman Cheplyaka
wrote: Works just fine here.
myparser = sepBy gqrrel (char ',')
myparser :: (Text.Parsec.Prim.Stream s m Char) => Text.Parsec.Prim.ParsecT s u m [[Char]]
Have you turned off the monomorphism restriction globally? I wouldn't have thought that myparser would get an overloaded type otherwise.
Indeed, I have (in ~/.ghci). I suspected this is the reason, but: *Main> :set -XMonomorphismRestriction *Main> :r Ok, modules loaded: Main. Can you explain this? (Now I've checked that if I first launch ghci, then turn the MR on and load the file, the error appears.) -- Roman I. Cheplyaka :: http://ro-che.info/ Don't worry what people think, they don't do it very often.