[Haskell-cafe] Re: How to do this in FP way?

Henning Thielemann lemming at henning-thielemann.de
Mon Jun 16 14:59:23 EDT 2008

On Mon, 16 Jun 2008, Achim Schneider wrote:

> We have to resort to IO actions to get the time, and to IORefs because
> we need to chain up different calls to getCurrentTime using the IO
> Monad. The rest of the program can work with whatever you like best.

Isn't  (StateT s IO a)  the cleaner alternative to IORef?

More information about the Haskell-Cafe mailing list