Commit Graph

46 Commits

Author SHA1 Message Date
Gabriel Gonzalez
afb645faa5 Version 1.4.1 => 1.4.2 2017-06-17 13:32:19 -07:00
Gabriel Gonzalez
3d47ddcc83 Add missing Prelude files to Extra-Source-Files
This fixes build failures in Dhall package archives downloaded from
Hackage
2017-06-17 13:30:48 -07:00
Gabriel Gonzalez
51f05ca422 Version 1.4.0 => 1.4.1 2017-06-17 13:13:42 -07:00
Gabriel Gonzalez
42d5acf9c8 Add tests/Tutorial.hs module to the cabal package
This fixes a test failure for builds from Hackage due to the module not
being included in the package archive
2017-06-17 13:12:20 -07:00
Gabriel Gonzalez
a744bd0b6b Version 1.3.0 => 1.4.0 2017-06-17 12:36:12 -07:00
Gabriel Gonzalez
45a7f8cbb7 Add support for additional headers for URL imports. Fixes #45 (#71)
Users can now supply additional headers for URL imports using the new `using`
keyword, like this:

```haskell
http://example.com using ./headers
```

... where `./headers` must be a value of type:

```haskell
{ header : Text, value : Text }
```

The argument to `using` must be an import (such as a file, URL, or env import)
and cannot be an inline Dhall expression.  There are two reasons why:

* The header expression is resolved, type-checked, and normalized in a separate
  phase preceding the import of the corresponding URL so it does not have access
  to bound variables in scop
* This restriction greatly simplifies the implementation

Also, headers are automatically forwarded to relative imports, so if you import a
URL like this:

```haskell
http://example.com using ./headers
```

... and that serves a file like:

```haskell
./foo
```

... then Dhall will import `http://example.com/foo` using the same `./headers`.
2017-06-17 07:14:37 -07:00
Bartosz Nitka
daad343111 Relax bound on trifecta for GHC 8.2 (#67)
trifecta-1.7 is the first version of trifecta
that builds with GHC 8.2 and Cabal 2.0
2017-06-15 06:13:53 -07:00
Gabriel Gonzalez
c12ff1cb67 Version 1.2.0 => 1.3.0 2017-05-17 09:09:41 -07:00
Gabriel Gonzalez
e0319ecaa5 Forbid additional characters from paths (#58)
This reduces the number of situations where users have to end a path
with a space
2017-05-16 09:17:19 -07:00
Gabriel Gonzalez
cd9c3f97e0 Update Prelude (#57)
This adds new builtins to the Prelude and also adds corresponding tests
2017-05-15 12:54:28 -07:00
Gabriel Gonzalez
d292d4bfb4 Add tests for Prelude examples (#56)
This adds tests that match the examples in the Prelude documentation and
also fixes a couple of mistakes caught along the way
2017-05-14 10:45:24 -07:00
Markus Hauck
a40cd7cb75 Implement Natural/toInteger (#50)
* Move test utils into separate module and use custom assertions

* Implement Natural/toInteger as primitive conversion

Relates to #49
2017-05-08 06:51:58 -07:00
Gabriel Gonzalez
dcff2c3bad Change tests to test source code (#48)
This change updates the test to test Dhall source code so that we're
exercising the system from end to end.  This also makes it easier to
author tests since expressions can be written as Dhall source code
instead of an abstract syntax tree.
2017-05-07 13:10:27 -07:00
Gabriel Gonzalez
6c5cacd7a2 Increase upper bound on vector (#46) 2017-05-07 08:34:39 -07:00
Markus Hauck
32aa2a71e1 Implement Optional/build with fusion (#44)
- Defines a new primitive `OptionalFold`
- Implements normalization:
  - inlining of Optional/build if constants are used as args
  - fusion of fold/build and build/fold
2017-05-01 12:00:15 -07:00
Markus Hauck
ca40559cdc Add test suite (#42) 2017-04-29 14:41:53 -07:00
Markus Hauck
b99648999a Add new argument: --version (#39) (#39)
Useful to see which version of `dhall` you are currently using.
2017-04-17 12:44:33 -07:00
Gabriel Gonzalez
8e3d087ae3 Version 1.1.0 => 1.2.0 2017-04-10 19:26:12 -07:00
Gabriel Gonzalez
3958a4b42a Version 1.0.2 => 1.1.0
Also added `CHANGELOG.md`
2017-02-05 12:34:15 -08:00
Gabriel Gonzalez
fe4a9596ce Update LICENSE 2017-01-29 14:59:16 -08:00
Gabriel Gonzalez
c54353c3ee Replace microlens* dependencies with lens. Fixes #20
`trifecta` already depends on `lens`, so using `microlens` does not
actually trim down the dependency tree.  Quite the opposite: it adds two
unnecessary dependencies.
2017-01-29 14:44:09 -08:00
Gabriel Gonzalez
17290171fe Make Dhall -Wall-clean 2017-01-29 14:10:28 -08:00
Gabriel Gonzalez
46218e96a5 Version 1.0.1 => 1.0.2 2017-01-22 09:50:24 -08:00
Colin Woodbury
ba42b9d1a5
Boost http-client upperbound and fix compilation fallout 2016-12-17 08:38:02 -08:00
Gabriel Gonzalez
c99d4fb753 Fix lower bound on base
Dhall depends on `Numeric.Natural` which was introduced in `base-4.8.0.0`
2016-12-08 09:57:31 -08:00
Bryan O'Sullivan
7a4e675d25 Fix lower bound on http-client 2016-12-06 18:22:13 +00:00
Gabriel Gonzalez
e437261910 Version 1.0.1
I uploaded version 1.0.0 to Hackage by accident, so I need to bump the version
number again to upload the real initial release
2016-12-05 09:20:52 -08:00
Gabriel Gonzalez
878eccd65e Only support GHC 7.10 or newer
Dhall depends on `Numeric.Natural` which was first added in `base-4.8`, which
ships with `ghc-7.10`
2016-12-04 13:44:15 -08:00
Gabriel Gonzalez
d9c3fc15dc Add Travis configuration 2016-12-04 13:18:43 -08:00
Gabriel Gonzalez
e34ce03ea4 Update documentation 2016-11-24 19:15:29 -08:00
Gabriel Gonzalez
d393963888 Simplify command line interface and add --explain 2016-11-04 21:41:47 -07:00
Gabriel Gonzalez
b81a85a0ad Update package description 2016-11-03 21:25:23 -07:00
Gabriel Gonzalez
b076ca2e77 Remove unused dependencies 2016-11-03 21:22:03 -07:00
Gabriel Gonzalez
9622c98f06 Remove unused dependencies 2016-11-03 21:20:31 -07:00
Gabriel Gonzalez
eafb926a75 Remove unnecessary alex/happy build dependencies 2016-11-03 21:16:20 -07:00
Gabriel Gonzalez
e23885f315 Add version bounds to dependencies 2016-11-03 21:15:34 -07:00
Gabriel Gonzalez
e3850beed6 Use (stdin) and (input) in Trifecta error messages
... instead of `(interactive)`
2016-11-03 09:40:29 -07:00
Gabriel Gonzalez
9b7aa9dad3 Remove old parser implementation 2016-10-30 19:31:47 -07:00
Gabriel Gonzalez
13eddef662 Initial switch to new trifecta-based parser
Still several bugs to work out
2016-10-30 18:33:14 -07:00
Gabriel Gonzalez
deedb216bb First draft of trifecta parser
`trifecta` makes it *much* easier to get the corresponding source of parsed
values
2016-10-30 12:06:47 -07:00
Gabriel Gonzalez
51a86a1ec8 Move type-checking logic to separate Dhall.TypeCheck module
The error messages alone warranted separating this out into a separate module
2016-10-17 18:34:51 -07:00
Gabriel Gonzalez
86e76fc7c3 Remove unused dependencies 2016-09-11 21:59:27 -07:00
Gabriel Gonzalez
d3998b09a2 Switch to happy for parsing and simplify the alex lexer 2016-09-11 20:38:37 -07:00
Gabriel Gonzalez
8674487cf1 Add neatinterpolation dependency 2016-09-10 08:59:32 -07:00
Gabriel Gonzalez
3a2faaa4fb Add support for decoding into records using GHC generics
Also began the tutorial
2016-09-09 09:17:25 -07:00
Gabriel Gonzalez
9a6ee13cd0 Initial commit 2016-09-07 09:17:12 -07:00