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

Dhall specifications #31

Open
aviaviavi opened this issue Jul 23, 2018 · 0 comments
Open

Dhall specifications #31

aviaviavi opened this issue Jul 23, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@aviaviavi
Copy link
Owner

aviaviavi commented Jul 23, 2018

This is being worked on in PR #11, but progress has stalled. I've been running into issues that I've copied here:

  • It's not clear how to encode arbitrary json as a Dhall type. Since curl runnings specs are lists of test cases, it seems like the matchers all need to be the same type and it's not clear how to achieve this. Users need to be able to specify json of any shape, and we will never know that shape ahead of time. Curl runnings is currently using aeson for json support, but I can't make an Interpret instance of aeson's Value without having an orphan instance in the hackage library (right?).
  • The curl runnings spec uses sum types pretty heavily, and encoding those in Dhall is extremely verbose. There's probably a way to specify some Dhall based utilities to ease the boilerplate, but I haven't been able to get anything like that working yet.
    If you feel like you're up for helping by either advising or contributing parts of the implementation, please reach out!```
@aviaviavi aviaviavi added enhancement New feature or request help wanted Extra attention is needed labels Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant