[Haskell-cafe] problem with implicit parameter

Eric eeoam at ukfsn.org
Tue May 15 11:41:10 EDT 2007


Hi there,

I've written the following program

putchr = putChar ?d

main = do
{ c <- getChar
; putchr with ?d = c}

which I try to compile with

ghc --make -fimplicit-params myprogram

However I keep getting the following error:

myprogram.hs:5:17: parse error on input `='

What's wrong?


E.




More information about the Haskell-Cafe mailing list