[Haskell-cafe] Replacing stdin from within Haskell

Brandon Allbery allbery.b at gmail.com
Fri Jun 10 06:12:04 CEST 2011


On Thu, Jun 9, 2011 at 23:59, Richard O'Keefe <ok at cs.otago.ac.nz> wrote:
> I understood the OP's question to mean "does Haskell allow rebinding
> of what _it_ calls standard input", which would be YES for Pop, Ada,
> Prolog, and Lisp, just as it is NO for C.

But none of those are Haskell, and neither GHC nor Hugs provides such
an abstraction in the standard libraries.  As I specifically tied my
response to GHC, whose runtime I/O system does not allow such
abstraction, my point stands.  If the topic were Common Lisp, the
answer would be different.



More information about the Haskell-Cafe mailing list