-
Notifications
You must be signed in to change notification settings - Fork 218
Dhall --format removes equal sign for "in", but dhall-to-json throw invalid input error #1754
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
Comments
@jeli8-cor: I believe the issue here is that your If you built |
(context: @jeli8-cor is a colleague on my team and I'm trying to help pin this down) @Gabriel439 I noticed that the release for as @jeli8-cor is an OS X user, I noticed that this resulted in homebrew formulae being updated for dhall and dhall-json on different dates: Maybe, even if the contents behind https://hackage.haskell.org/package/dhall-json-1.6.3/dhall-json-1.6.3.tar.gz changed, homebrew didn't trigger a new build and it's causing homebrew users to get the wrong binary? |
@ari-becker: That is correct. The My rough understanding of how the Homebrew model works is that Haskell packages are not rebuilt if their Haskell dependencies change, so I'm guessing the rough chain of events was:
The reason why Homebrew does things this way is because Homebrew packages Haskell packages differently from, say, Nix. The Homebrew package for |
@Gabriel439 , I tried to download the version directly and not via homebrew and everything works as expected. So it must be the homebrew issue and we need to solve it from there |
@jeli8-cor: I just opened a threat on the Brew Discourse to ask about this: https://discourse.brew.sh/t/rebuild-reverse-dependencies-of-a-changed-haskell-package/7516 |
I have a pull request up against |
Fixed by Homebrew/homebrew-core#53553 |
When running dhall format on the following script:
in the new version (1.31.1), we'll get:
But, when we'll run dhall-to-json on that file, we'll get the following error:
If I'll return the equal sign in the script and run dhall-to-json (without formatting it first), it will work...
Issue is detected only in new version - 1.31.1 , 1.6.3 (dhall and dhall-to-json, respectively)
The text was updated successfully, but these errors were encountered: