dhall-haskell/tests
Gabriel Gonzalez 2c536ae805
Add options and command-line support for protocol versions (#531)
The immediate goal of this pull request was to add command-line support
for a `--protocol-version` flag so that users could pin to a specific
binary protocol versions tring to avoid a forced upgrade when they
install a newer version of the Dhall interpreter.

However, in the process I ended up cleaning up the `Dhall.Import`
`load*` family of functions by consolidating everything into two
functions:

* `load` - Exact same type signature and semantics as before for the
  happy path with sensible defaults

* `loadWith` - The ultra-customizable version where all the options are
  stuffed into the existing `Status` record for ease of extension later

I also fixed a bug along the way where `decodeWithVersion_1_0` and
`encodeWithVersion_1_0` were serializing and deserializing the wrong
version string.
2018-08-03 06:50:03 -07:00
..
format Fix missing space in import suffix formatting (#485) 2018-06-26 00:02:14 +03:00
import Allow setting the root directory to not be CWD (#508) 2018-07-14 21:28:27 +01:00
normalization Re-enable test for Natural/build normalization (#523) 2018-07-24 18:16:47 +03:00
parser Add '$' as an allowed character in quoted labels (#510) 2018-07-14 18:07:45 +03:00
regression Normalize each import before it is cached. (#392) 2018-05-17 08:07:46 -07:00
tutorial Switch grammar of Natural and Integer (#381) 2018-05-12 09:20:08 -07:00
typecheck Fix α-equivalence bug when type-checking merge (#394) 2018-05-19 07:43:48 -07:00
Format.hs Move pretty layout options to Dhall.Pretty (#492) 2018-07-12 21:30:47 -07:00
Import.hs Add options and command-line support for protocol versions (#531) 2018-08-03 06:50:03 -07:00
Normalization.hs Re-enable test for Natural/build normalization (#523) 2018-07-24 18:16:47 +03:00
Parser.hs Alternative Imports (#473) 2018-06-28 19:00:00 +03:00
QuickCheck.hs Add options and command-line support for protocol versions (#531) 2018-08-03 06:50:03 -07:00
Regression.hs Move pretty layout options to Dhall.Pretty (#492) 2018-07-12 21:30:47 -07:00
Tests.hs Serialization support (#519) 2018-07-30 10:19:41 -07:00
Tutorial.hs Switch grammar of Natural and Integer (#381) 2018-05-12 09:20:08 -07:00
TypeCheck.hs Use Strict Text for Parsing. (#422) 2018-06-01 11:54:07 -06:00
Util.hs Use Strict Text for Parsing. (#422) 2018-06-01 11:54:07 -06:00