Update stack/cabal config to sync with new structure (#671)

Also, add build instructions for cabal and stack in alphabetical order
This commit is contained in:
Javier Neira 2018-11-06 14:42:23 +01:00 committed by Gabriel Gonzalez
parent 9d39286e35
commit 5db1051311
10 changed files with 82 additions and 39 deletions

View File

@ -12,15 +12,50 @@ Navigate to each package's directory for their respective `README`s
# Quick start
## Building from source
### [cabal](https://www.haskell.org/cabal)
You can build all of the packages by running:
```console
$ cabal new-build all
```
And each of them with `cabal new-build <package-name>`, for example:
```console
$ cabal new-build dhall
```
... or you can run `cabal new-build` within each package directory.
### [nix](https://nixos.org/nix/)
You can build all of the packages by running:
```console
$ nix-build
```
... or you can run `nix-build` within each package's respective directory to
build just that one package.
### [stack](https://docs.haskellstack.org)
You can build all of the packages with
```console
$ stack build
```
And each of them with `stack build <package-name>`, for example:
```console
$ stack build dhall-json
```
## Development status
[![Build Status](https://travis-ci.org/dhall-lang/dhall-haskell.png)](https://travis-ci.org/dhall-lang/dhall-haskell)

1
cabal.project Normal file
View File

@ -0,0 +1 @@
packages: ./dhall ./dhall-bash ./dhall-json ./dhall-text

View File

@ -1 +0,0 @@
packages: .

View File

@ -1,6 +0,0 @@
resolver: lts-12.13
extra-deps:
- dhall-1.18.0
- megaparsec-7.0.1
- repline-0.2.0.0
- serialise-0.2.1.0

View File

@ -1,4 +0,0 @@
resolver: lts-11.9
extra-deps:
- dhall-1.14.0

View File

@ -1,11 +0,0 @@
resolver: lts-11.22
extra-deps:
- cborg-0.2.0.0
- serialise-0.2.0.0
- megaparsec-7.0.0
- parser-combinators-1.0.0
- repline-0.2.0.0
nix:
packages:
- ncurses
- zlib

View File

@ -1,14 +0,0 @@
resolver: lts-12.4
extra-deps:
- megaparsec-7.0.0@rev:0
- repline-0.2.0.0@rev:0
# Version 0.2.0.0 of cborg, the latest on Hackage, is broken on i386.
- github: well-typed/cborg
commit: master
subdirs:
- cborg
- serialise
nix:
packages:
- ncurses
- zlib

17
stack-lts-11.yaml Normal file
View File

@ -0,0 +1,17 @@
resolver: lts-11.22
packages:
- dhall
- dhall-bash
- dhall-json
- dhall-text
extra-deps:
- cborg-0.2.1.0
- serialise-0.2.1.0
- megaparsec-7.0.3
- parser-combinators-1.0.0
- repline-0.2.0.0
- shell-escape-0.2.0
nix:
packages:
- ncurses
- zlib

View File

@ -1,10 +1,16 @@
resolver: lts-6.27
packages:
- dhall
- dhall-bash
# dhall-json uses ApplicativeDo
# - dhall-json
- dhall-text
extra-deps:
- ansi-terminal-0.7.1.1
- ansi-wl-pprint-0.6.8.2
- cryptonite-0.24
- formatting-6.3.2
- megaparsec-7.0.0
- megaparsec-7.0.3
- parser-combinators-1.0.0
- optparse-generic-1.3.0
- optparse-applicative-0.14.0.0
@ -20,5 +26,10 @@ extra-deps:
- haskeline-0.7.4.2
- aeson-1.2.3.0
- th-abstraction-0.2.6.0
- cborg-0.2.0.0
- serialise-0.2.0.0
- cborg-0.2.1.0
- serialise-0.2.1.0
- shell-escape-0.2.0
nix:
packages:
- ncurses
- zlib

15
stack.yaml Normal file
View File

@ -0,0 +1,15 @@
resolver: lts-12.16
packages:
- dhall
- dhall-bash
- dhall-json
- dhall-text
extra-deps:
- megaparsec-7.0.3
- repline-0.2.0.0
- serialise-0.2.1.0
- neat-interpolation-0.3.2.4
nix:
packages:
- ncurses
- zlib