[Haskell-cafe] Re: [Haskell] Re: Global Variables and IO initializers

Benjamin Franksen benjamin.franksen at bessy.de
Sun Nov 7 13:19:48 EST 2004


On Sunday 07 November 2004 17:41, Keean wrote:
> I might really want to call the initialisation twice. If you use global
> variables, the library can only be initialised once... but what if I
> really want to use the library twice? With the state in a type passed
> between functions, you can have multiple different states active
> at once.

Yes, exactly. Just as you might, in fact, *want* to call putString twice... ;)

Ben


More information about the Haskell-Cafe mailing list