[jhc] Strange error message when using Parsec

Dr. ERDI Gergo gergo at erdi.hu
Fri Feb 11 01:21:13 CET 2011


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 at .Absurd.*)


-- 

   .--= ULLA! =-----------------.
    \     http://gergo.erdi.hu   \
     `---= gergo at erdi.hu =-------'
Men are stupid, women are crazy.



More information about the jhc mailing list