-
Notifications
You must be signed in to change notification settings - Fork 96
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
composing nodes with input/output ports in Nickel #1353
Comments
If you want to do this, I think you should trade either the Writing
So, what you get is You have several possible fixes:
I hope it's not too confusing, but I wanted to explain a bit the different possibilities, because it's not always obvious what to do, when you can chose either
Now, you get a better motivated "missing definition for
From there, you might have another problem which is that all your |
We've fiddled with that idea a bit more, and here is a more polished version of composition:
In the end, it's "just" encoding functions as recursive record, which is in some sense a natural encoding. That's also the idea behind NixOS modules versus packages-as-functions, and the Package As Record Model proposed by Nickel-Nix RFC. Anyway, I think we can consider the original question to be solved. Feel free to re-open if not (or open a new issue or discussion for a related but separate matter). |
Hi all,
I would love getting something like this to work to compose workflows with input/output ports in Nickel:
The example could be extended to include partially composed nodes but even before that it currently it produces at least these two problems:
and
Is it possible to do this in Nickel?
The text was updated successfully, but these errors were encountered: