-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Standardize builtin Bytes type #1323
Conversation
I also included changes to the Haskell code to work around |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great so far!
|
||
print encoded | ||
|
||
args <- System.Environment.getArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a comment explaining that this is to make it easier to generate .diag
files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It actually helps to generate the *.dhallb
of the testsuite; The *.diag
are still generated by cbor2diab.rb
.
However, I added some more documentation to the Interpret.hs
module explaining how to do that.
Do you think that is sufficient?
* Currently only base-16 represenation * No functions to do something meaningful with Bytes values Fixes dhall-lang#1179
Useful to generate the *.dhallb files of the parser tests.
Apparently needed to work with the Nix installation in docker.io/nixos/nix.
Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
a090fd7
to
ea2155b
Compare
* Require Bytes literals to have an even length * Added test case for that * Added some more literals to the Bytes parser test case * Added documentation on how to generate *.dhallb with the included dhall executable
@Gabriella439 Oh, yes, the byte literals must have an even length. That was a bug in the proposal! Good catch 👍 |
Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
… as standardized in dhall-lang/dhall-lang#1323
… as standardized in dhall-lang/dhall-lang#1323
… as standardized in dhall-lang/dhall-lang#1323
Current scope of this proposal:
Fixes #1179