Benjamin Franksen [EMAIL PROTECTED] writes:
We could reduce the pain of applying the C wrapper solution a bit by adding
some support in the FFI. I imagine a feature to allow writing small C
wrappers around imported foreign routines directly inside the Haskell
module.
Such a facility is
(stdin,stdout,stderr) seem to naturally have this scope (assuming you
don't use freopen). There needs to be only one Handle created for each
of these because otherwise the buffering won't work properly. Global
- initializers seem like the right thing here.
I think I would rather have them
I think the broad issue is that there are many different levels of the
system at which something can be global: a module, a thread, a process,
a user, a computer, a network segment, the internet, the universe, etc..
If your model of a concept is more global than the concept itself, you
lose