[Haskell-cafe] problem with implicit parameter

Dan Mead d.w.mead at gmail.com
Tue May 15 17:10:00 EDT 2007


try sticking a semicolon in there for good measure, sometimes ghc gets
confused

On 5/15/07, Eric <eeoam at ukfsn.org> wrote:
>
> 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.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070515/250c5d1c/attachment.htm


More information about the Haskell-Cafe mailing list