I think it would be useful if there was a version of compile that in addition to compiling the network allowed MomentIO to return a side value:
compile' :: MomentIO a -> IO (a, EventNetwork)
This allows you to, for example, extract the initial values of behaviors. Looking at the source code, it appears that there already is code to do the above, it just isn't exported in a nice way.
I think it would be useful if there was a version of
compilethat in addition to compiling the network allowedMomentIOto return a side value:This allows you to, for example, extract the initial values of behaviors. Looking at the source code, it appears that there already is code to do the above, it just isn't exported in a nice way.