On Tue, 8 Feb 2011, Dr. ERDI Gergo wrote:
I'm trying to use jhc with Parsec. However, while reimplementing some Parsec.Token functionality, I've encountered a strange error message. I've created a hopefully minimal example (see attached).
I've managed to create an even simpler program exhibiting a similar problem: main = getLine >>= (print . parse (eof) "") jhc's output: jhc -flint -fffi -fjgc parsec-error.hs -o parsec.jhc -p parsec jhc 0.7.7 (0.7.6-53) Finding Dependencies... Using Ho Cache: '/home/cactus/.jhc/cache' Main [parsec-error.hs] Typechecking... [1 of 1] Main (.............................................) Compiling... [1 of 1] Main <..................................................> Collected Compilation... -- typeAnalyzeMethods jhc: Types don't match:(Char, Jhc@.Absurd.*) -- .--= ULLA! =-----------------. \ http://gergo.erdi.hu \ `---= gergo@erdi.hu =-------' Men are stupid, women are crazy.