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.dump(s) is able to generate mal-typed Dhall #1

Open
s-zeng opened this issue Oct 31, 2020 · 0 comments
Open

dhall.dump(s) is able to generate mal-typed Dhall #1

s-zeng opened this issue Oct 31, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@s-zeng
Copy link
Owner

s-zeng commented Oct 31, 2020

Description

When passing mix-typed lists to dhall.dump(s), the resulting dhall that is outputted is not well-typed and cannot be read back with dhall.loads

Expected behaviour

python-dhall should error when receiving mal-typed inputs. For all inputs x, dhall.loads(dhall.dumps(x)) should either error on dumps, or be identitcal to the identity function on x, or else have some other way to translate heterogeneous lists and other dynamic data

@s-zeng s-zeng added bug Something isn't working enhancement New feature or request labels Nov 11, 2020
@s-zeng s-zeng added this to the v1.0.0 milestone Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant