[Haskell-beginners] question about ghci printing process

Daniel Trstenjak daniel.trstenjak at gmail.com
Fri Jun 28 13:45:16 CEST 2013


Hi TP,

> So, how does gchi print `runQ [| \x -> 1 |]`?

I think the type in this context is 'IO Exp', there's also the instance 'Quasi IO'
and ghci seems to have some kind of special case for the IO monad containing something showable.

Prelude> return "eee"
"eee"

Prelude> return $ \e -> e + 1
Prelude>


Greetings,
Daniel



More information about the Beginners mailing list