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

Data types for send and receive aren't preserved by toJSON #1

Open
mx00s opened this issue Jul 18, 2021 · 0 comments
Open

Data types for send and receive aren't preserved by toJSON #1

mx00s opened this issue Jul 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mx00s
Copy link
Owner

mx00s commented Jul 18, 2021

As of 0398a0a the data types for send and receive operations are encoded in Dhall as Type, but there's no general function for converting Type -> Text.

Perhaps the type used for data in send and receive operations should be bound as a type parameter on ./SimpleSession/Type, e.g. \(dataType : Type), and the toJSON function should take an additional parameter of type dataType -> JSON/Type to help with the conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant