[Haskell-cafe] Re: StateT and modify
pnsteiner at gmail.com
Wed Nov 8 15:30:49 EST 2006
On 11/8/06, Max Vasin <max.vasin at gmail.com> wrote:
> Peter> thanks. i am aware of trace, but the potentially messed up
> Peter> execution order makes it very hard for me to get useful
> Peter> information out of the resulting trace. besides, IO will
> Peter> scale to more elaborate logging mechanisms later on...
> If all you want from IO is logging why not just use MonadWriter?
good question. my initial idea, being lazy, was that IO provides
IORefs which might prove useful later on, but then i guess that a
cleanly composed monad will behave better in the long term anyways.
i have to add that this is my first large haskell project and i do
many design decisions on a trial'n'error basis - naturally with a
strong tendency to the error side. ;-)
More information about the Haskell-Cafe