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

Custom functions without using Internal modules #608

Open
tysonzero opened this issue Oct 18, 2024 · 2 comments
Open

Custom functions without using Internal modules #608

tysonzero opened this issue Oct 18, 2024 · 2 comments

Comments

@tysonzero
Copy link

Came up in the context of #592

In the same way you declare a table and the types of the columns, seems fair to be able to declare a function and the types of the function args/result.

@tomjaguarpaw
Copy link
Owner

This seems reasonable. A nice API might provide a FunctionArgs product profunctor and support something like

makeFunction :: Default args args => String -> args -> FieldNullable n t

What do you think?

@tomjaguarpaw
Copy link
Owner

In fact, maybe FunctionArgs could just be Unpackspec. I'll have to check.

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

No branches or pull requests

2 participants