Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement custom type class when leaving a Forward unconnected using circuit-notation #92

Open
rowanG077 opened this issue Jul 23, 2024 · 0 comments
Assignees

Comments

@rowanG077
Copy link
Member

rowanG077 commented Jul 23, 2024

When using circuit notation and explicitly ignoring a stream using _ like so:

board = circuit \in -> inp
    (a, _b) <- idC -< inp
    idC -< a

The Default type class is used to generate Bwd to feed into _b stream. This is undocumented and also dangerous if you happen to have a Default implementation for a Protocol Backwards that does not ack the Forward leading to a deadlock.

We want a seperate type class that defines the backwards that will be used by circuit-notation to drive the backwards of a black holed stream. The easiest way is probably is to define this in plugin itself. Or make the function name an argument to the plugin.

I think the function completeUnderscores needs to be modified to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants