Comments (16)
Sounds good!
I think the main blind spot I had when writing the README
was underestimating the value of the JSON/YAML conversion. I had always viewed that as a second-class workaround for the lack of a direct language binding and not a first-class solution to recommend to users. However, from reading your feedback it sounds like I should instead rebrand Dhall as an alternative to Jsonnet that's safer and supports other integrations, too
I also agree with the other feedback about how to market use cases and solve specific problems at the beginning of the tutorial. I'll put up a pull request soon updating the README
that you can review
from dhall-lang.
Oh, also, "how to install dhall" instructions for common platforms (Linux, macOS, Windows).
from dhall-lang.
Alright, then I'll try to provide binary releases for various platforms, too
from dhall-lang.
@BatmanAoD: Yeah, I will update the README with instructions soon. Here's my rough first draft of what I'll add to the README
:
In the short-term, here are a few ways to install the interpreter:
- Recommended: Install the Haskell package using Haskell's
stack
build tool- Instructions for installing
stack
here: https://haskellstack.org/ - Then run:
stack setup && stack install dhall
- Instructions for installing
- Install the Haskell package using Haskell's
cabal
build tool:- You can obtain
cabal
from the minimal installer here: https://www.haskell.org/downloads - Then run:
cabal update && cabal install dhall
- You can obtain
- Installing the package using Nix
- Instructions for installing Nix here: https://nixos.org/nix/download.html
nix-env --install --attr haskellPackages.dhall
Installation paths that I'd like to provide (or that others can contribute if they have time before I do):
brew
- Surprisingly, there is already a
brew
package fordhall-json
, but notdhall
:- https://github.com/Homebrew/homebrew-core/blob/master/Formula/dhall-json.rb
- It should be easy to crib from the above derivation to provide support for
dhall
- Surprisingly, there is already a
- Debian package
- I think this is just a matter of asking the Debian Haskell group to package it. They're pretty helpful
- Pre-built binaries hosted on the release page of this repository
- Try the Dhall interpreter in the browser (using
ghcjs
to compile to Javascript)
from dhall-lang.
Indeed, after disabling my virus scanner I was able to install GHC and dhall.
from dhall-lang.
@errordeveloper: You're welcome! 🙂
from dhall-lang.
I have to say that your blog has a few pretty concrete stories, but that's a lot of reading... I'm intending to have a good look at the blog at some point.
from dhall-lang.
@jml @Gabriel439 Forgive me for asking a stupid question, but it looks like the README still doesn't provide a link or any instructions for installing the command-line interpreter. It looks like maybe the dhall
executable itself is part of dhall-lang/dhall-haskell, which at first I didn't even think to look at, since I am not (yet) a Haskell-er? But, unfortunately, as a non-Haskell-er, I'm not even sure how to build/install the standalone package. A little help, please?
from dhall-lang.
Thank you!
I realize this isn't really something you can help with, but stack
seems to have some issues on Windows with certain antirivus software (GHC won't be automatically installed due to a permissions issue, and after installing it manually, I ran into another permissions issue trying to do the actual install; some searching led me to a couple of threads that suggest antivirus is to blame). So unfortunately I'll have to put trying dhall on hold for now.
from dhall-lang.
@BatmanAoD: No problem! You can report the stack
issue here if there's not already a related issue: https://github.com/commercialhaskell/stack/issues
from dhall-lang.
Yep, there is one, but it's been closed since the antivirus-disabling solution seems to work for most people. So at some point I'll either try again on a VM or talk to IT about making a scanning exception for Stack. commercialhaskell/stack#1917
from dhall-lang.
@BatmanAoD: One other question: if there had been a binary executable to install would that have made things easier? In other words, would you not have had to disable the virus scanner?
from dhall-lang.
I believe that would have worked fine; I don't typically experience this sort of problem, and I don't think I've ever seen it for Windows msi
binaries or other "native" installers.
from dhall-lang.
That will definitely be helpful!
from dhall-lang.
I will close this out as I believe most of the original suggestions have been addressed in some way. In particular, we now have a https://docs.dhall-lang.org/ which has a more comprehensive set of educational resources and the README
links to that now.
from dhall-lang.
@Gabriel439 thanks for closing with an informative note!
from dhall-lang.
Related Issues (20)
- Cannot Decode Expression with extended Builtin Function HOT 1
- Q. Are you interested in syntax diagrams for Dhall? HOT 6
- Reversing order of Merge and Selection? HOT 2
- Too many duplicate type annotations? HOT 2
- `with` record update syntax removes other record fields HOT 4
- ABNF grammar should list "as Bytes" import mode
- Should the ABNF grammar disallow shebangs inside expressions? HOT 1
- eta-reducing to merge HOT 4
- Builtins operators reference: Missing record projection HOT 2
- ABNF grammar should explicitly disallow keywords as identifiers? HOT 2
- ABNF grammar should include a mandatory whitespace after `import-hashed`? HOT 1
- Improvements and fixes in the standard documentation HOT 3
- Is this an incorrect test file: `dhall-lang/tests/import/success/unit/ImportRelativeToHomeB.dhall`? HOT 2
- Link to non existing tweet
- A minimalistic proposal for do-notation
- Thoughts on introducing a minimum amount of type inference in Dhall HOT 1
- Introduce Bytes/length and Text/length as built-ins? HOT 3
- Is there a security hole: malicious sha256-protected cached content? HOT 1
- Eta-equivalence in `assert`? HOT 13
- A type level equivalent of the `with` keyword HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhall-lang.