dfd9822e77
This moves the type annotation into a separate tab, both to avoid the type cluttering the default output tab and to allow a display mode that focuses on highlighting just the type. This also adds a "YAML" output tab to gently suggest to the user that Dhall is intended to be an alternative to YAML. Unfortunately, we can't use the Haskell `yaml` package to render to YAML when building with GHCJS, but we can still perform the JSON-to-YAML conversion in JavaScript. |
||
---|---|---|
dhall | ||
dhall-bash | ||
dhall-json | ||
dhall-text | ||
dhall-try | ||
nix | ||
.gitignore | ||
.travis.yml | ||
cabal.project | ||
default.nix | ||
LICENSE | ||
README.md | ||
release.nix | ||
stack-lts-6.yaml | ||
stack-lts-11.yaml | ||
stack.yaml |
dhall-haskell
You will probably want to read the language-agnostic README
here:
This repository focuses on the Haskell bindings to Dhall and contains the following packages:
dhall
-dhall-bash
-dhall-json
-dhall-text
-
Navigate to each package's directory for their respective README
s
Pre-built binaries
You can download pre-built binaries for Windows and Linux on the release page:
For OS X, use brew
to install the desired package. For example:
$ brew install dhall-json
Building from source
cabal
You can build all of the packages by running:
$ cabal new-build all
And each of them with cabal new-build <package-name>
, for example:
$ cabal new-build dhall
... or you can run cabal new-build
within each package directory.
nix
You can build all of the packages by running:
$ nix-build
... or you can run nix-build
within each package's respective directory to
build just that one package.
You can install all of the packages by running:
$ nix-env --install --file default.nix
... or you can run the same command within each package's respective directory to install just that one package.
You can develop any package by navigating to that package's directory and running:
$ nix-shell
[nix-shell]$ cabal configure
[nix-shell]$ cabal build
[nix-shell]$ cabal test
... or you can add nix: True
to your ~/.cabal/config
file and then you can
run the same cabal
commands without an explicit nix-shell
:
$ cabal configure
$ cabal build
$ cabal test
stack
You can build all of the packages with
$ stack build
And each of them with stack build <package-name>
, for example:
$ stack build dhall-json
Build the "Try Dhall" website
Building the website from source is currently only supported for Nix on Linux.
You can build the static assets by running:
$ nix-build --attr try-dhall-static
... then open ./result/index.html
in your browser.
You can also download archive containing the pre-built website from CI using this link:
Contributing
Read the following guide if you would like to contribute: