[Haskell-cafe] Is StateT what I need?
scook0 at gmail.com
Wed Dec 19 07:38:13 EST 2007
On Dec 19, 2007 11:28 AM, Andre Nathan <andre at digirati.com.br> wrote:
> I guess I could do away with StateT and just pass the PsMap around as a
> parameter, but I guess that wouldn't be the haskell way...
I wouldn't say that. Manual state-passing is a perfectly legitimate
technique, and can be clearer in some cases.
Once your program works with manual state-passing, you might then find
it easier to express using StateT -- or perhaps you'll decide that you
didn't need StateT after all.
More information about the Haskell-Cafe