Skip to content

A version of compile that returns a side value #201

Description

@ChristopherKing42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions