[Haskell-cafe] Re: problem with implicit parameter
Grzegorz
grzegorz.chrupala at computing.dcu.ie
Wed May 16 10:11:41 EDT 2007
Eric <eeoam <at> ukfsn.org> writes:
>
> Hi there,
>
> I've written the following program
>
> putchr = putChar ?d
>
> main = do
> { c <- getChar
> ; putchr with ?d = c}
>
I think you're supposed to use a let binding, like this:
putchr :: (?d::Char) => IO ()
putchr = putChar ?d
main = do
c <- getChar
let ?d = c
putchr
Best,
--
Grzegorz
More information about the Haskell-Cafe
mailing list