[Haskell-cafe] Re: [Haskell] Top Level <-

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Aug 31 10:23:35 EDT 2008

On 2008 Aug 31, at 10:20, Ganesh Sittampalam wrote:
> On Sat, 30 Aug 2008, Adrian Hey wrote:
>>> But then again, I'm sure that some that will be adamant that any way
>> of making "global variables" is a hack. But they'll still be happy
>> to go on using file IO, sockets etc regardless, blissfully unaware
>> of the hacks they are dependent on :-)
> I'm not sure of precisely what you mean here, but stdin, stdout and  
> stderr are things provided by the OS to a process. That's what  
> defines them as having process scope, not something the Haskell  
> language or RTS does.

But their representations in Haskell must have the same scope and are  
therefore de facto global variables.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list