Hello,

I decided to try and get my old multi-param. parser to work,
and got told-off by Haskell's parser:

Please tell me what I am doing wrong.  The following program:

> module A where
>  
> class (Monad m, Monad (t m)) => AMonadT t m where
>   lift :: m a -> t m a

Gives me:

(lambda o) ghc -fglasgow-exts A.hs                                              
A.hs:3:23: parse error on input: "("

Thanks,
Jon
----------------------------------------------------------------------

The Glorious Glasgow Haskell Compilation System, version 3.00, patchlevel 0

Effective command line: -fglasgow-exts -v

Ineffective C pre-processor:
        echo '{-# LINE 1 "A.hs" -}' > /tmp/ghc19403.cpp && cat A.hs >> 
/tmp/ghc19403.cpp

real        0.0
user        0.0
sys         0.0
ghc:compile:Output file A.o doesn't exist
ghc:recompile:Input file A.hs newer than A.o

Haskell compiler:
        /home/jon/FunctionalLanguages/GHC-3.00//lib/hsc ,-N ,-W ,/tmp/ghc19403.cpp  
-fglasgow-exts -fignore-interface-pragmas -fomit-interface-pragmas -fsimplify [  
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim 
-freuse-con -fpedantic-bottoms -fsimpl-uf-use-threshold3 -fmax-simplifier-iterations4  
]   -fwarn-overlapping-patterns -fwarn-missing-methods -fwarn-duplicate-exports 
-himap=.%.hi:/home/jon/FunctionalLanguages/GHC-3.00//lib/imports%.hi   -v 
-hifile=/tmp/ghc19403.hi -S=/tmp/ghc19403.s +RTS -H6000000 -K1000000
Glasgow Haskell Compiler, version 3.00, for Haskell 1.4
A.hs:3:23: parse error on input: "("

real        0.1
user        0.0
sys         0.1
deleting... /tmp/ghc19403.cpp /tmp/ghc19403.hi /tmp/ghc19403.s

rm -f /tmp/ghc19403*

Reply via email to