[Haskell-cafe] A question about State Monad and Monad in general
C K Kashyap
ckkashyap at gmail.com
Thu Jul 15 13:19:47 EDT 2010
> If you're using monadic style, changing from, say,
> State Thing
> StateT Thing OtherMonad
> or from
> StateT Thing FirstMonad
> StateT Thing SecondMonad
> typically requires only few changes. Explicit state-passing usually
> requires more changes.
So, performance gain (runtime/memory) is not a side effect of Monadic style
> Yes. If you write to a mutable array, you really write to the memory
> location without extra copying.
How's this done? Can it be done in Haskell without FFI?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe