Use git submodule to obtain official Prelude and test suite (#787)

Fixes https://github.com/dhall-lang/dhall-haskell/issues/766
This commit is contained in:
Gabriel Gonzalez 2019-01-19 09:09:34 -08:00 committed by GitHub
parent 96d34ee92a
commit 8f3e913cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
744 changed files with 392 additions and 4560 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "dhall/dhall-lang"]
path = dhall/dhall-lang
url = https://github.com/dhall-lang/dhall-lang.git

View File

@ -1 +0,0 @@
https://raw.githubusercontent.com/dhall-lang/Prelude/a22da69657b9316a3c51ba0bf80c9d4024db3fce/Monoid sha256:b306524b2f7fedd7dad0d328990e0b6271d93d6f2fbe7156474b757f5d8de187

View File

@ -1 +0,0 @@
https://raw.githubusercontent.com/dhall-lang/Prelude/e9c90396c02f9eb0fe66c00c544615cbfa068f34/package.dhall sha256:26e13b153cb428366610110d4d8f0c135e22b20179d5478bb16b1b83b3f2ca13

1
dhall/dhall-lang Submodule

@ -0,0 +1 @@
Subproject commit 732bf1514e52a1acfa4e2165fb3aa3ce694f78af

View File

@ -26,263 +26,334 @@ Extra-Source-Files:
benchmark/deep-nested-large-record/*.dhall
benchmark/examples/*.dhall
CHANGELOG.md
Prelude/Monoid
Prelude/package.dhall
dhall-lang/Prelude/Bool/and
dhall-lang/Prelude/Bool/build
dhall-lang/Prelude/Bool/even
dhall-lang/Prelude/Bool/fold
dhall-lang/Prelude/Bool/not
dhall-lang/Prelude/Bool/odd
dhall-lang/Prelude/Bool/or
dhall-lang/Prelude/Bool/package.dhall
dhall-lang/Prelude/Bool/show
dhall-lang/Prelude/Double/package.dhall
dhall-lang/Prelude/Double/show
dhall-lang/Prelude/Function/compose
dhall-lang/Prelude/Function/package.dhall
dhall-lang/Prelude/Integer/package.dhall
dhall-lang/Prelude/Integer/show
dhall-lang/Prelude/Integer/toDouble
dhall-lang/Prelude/JSON/keyText
dhall-lang/Prelude/JSON/keyValue
dhall-lang/Prelude/JSON/Nesting
dhall-lang/Prelude/JSON/package.dhall
dhall-lang/Prelude/JSON/Tagged
dhall-lang/Prelude/List/all
dhall-lang/Prelude/List/any
dhall-lang/Prelude/List/build
dhall-lang/Prelude/List/concat
dhall-lang/Prelude/List/concatMap
dhall-lang/Prelude/List/filter
dhall-lang/Prelude/List/fold
dhall-lang/Prelude/List/generate
dhall-lang/Prelude/List/head
dhall-lang/Prelude/List/indexed
dhall-lang/Prelude/List/iterate
dhall-lang/Prelude/List/last
dhall-lang/Prelude/List/length
dhall-lang/Prelude/List/map
dhall-lang/Prelude/List/null
dhall-lang/Prelude/List/package.dhall
dhall-lang/Prelude/List/replicate
dhall-lang/Prelude/List/reverse
dhall-lang/Prelude/List/shifted
dhall-lang/Prelude/List/unzip
dhall-lang/Prelude/Monoid
dhall-lang/Prelude/Natural/build
dhall-lang/Prelude/Natural/enumerate
dhall-lang/Prelude/Natural/even
dhall-lang/Prelude/Natural/fold
dhall-lang/Prelude/Natural/isZero
dhall-lang/Prelude/Natural/odd
dhall-lang/Prelude/Natural/package.dhall
dhall-lang/Prelude/Natural/product
dhall-lang/Prelude/Natural/show
dhall-lang/Prelude/Natural/sum
dhall-lang/Prelude/Natural/toDouble
dhall-lang/Prelude/Natural/toInteger
dhall-lang/Prelude/Optional/all
dhall-lang/Prelude/Optional/any
dhall-lang/Prelude/Optional/build
dhall-lang/Prelude/Optional/concat
dhall-lang/Prelude/Optional/filter
dhall-lang/Prelude/Optional/fold
dhall-lang/Prelude/Optional/head
dhall-lang/Prelude/Optional/last
dhall-lang/Prelude/Optional/length
dhall-lang/Prelude/Optional/map
dhall-lang/Prelude/Optional/null
dhall-lang/Prelude/Optional/package.dhall
dhall-lang/Prelude/Optional/toList
dhall-lang/Prelude/Optional/unzip
dhall-lang/Prelude/package.dhall
dhall-lang/Prelude/Text/concat
dhall-lang/Prelude/Text/concatMap
dhall-lang/Prelude/Text/concatMapSep
dhall-lang/Prelude/Text/concatSep
dhall-lang/Prelude/Text/package.dhall
dhall-lang/tests/import/data/fieldOrder/*.dhall
dhall-lang/tests/import/failure/*.dhall
dhall-lang/tests/import/success/*.dhall
dhall-lang/tests/normalization/success/*.dhall
dhall-lang/tests/normalization/success/haskell-tutorial/access/*.dhall
dhall-lang/tests/normalization/success/haskell-tutorial/combineTypes/*.dhall
dhall-lang/tests/normalization/success/haskell-tutorial/prefer/*.dhall
dhall-lang/tests/normalization/success/haskell-tutorial/projection/*.dhall
dhall-lang/tests/normalization/success/multiline/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/and/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/and/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/even/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/even/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/not/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/not/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/odd/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/odd/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/or/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/or/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Bool/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Double/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Double/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Integer/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Integer/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Integer/toDouble/*.dhall
dhall-lang/tests/normalization/success/prelude/Integer/toDouble/*.dhall
dhall-lang/tests/normalization/success/prelude/List/all/*.dhall
dhall-lang/tests/normalization/success/prelude/List/all/*.dhall
dhall-lang/tests/normalization/success/prelude/List/any/*.dhall
dhall-lang/tests/normalization/success/prelude/List/any/*.dhall
dhall-lang/tests/normalization/success/prelude/List/build/*.dhall
dhall-lang/tests/normalization/success/prelude/List/build/*.dhall
dhall-lang/tests/normalization/success/prelude/List/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/List/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/List/concatMap/*.dhall
dhall-lang/tests/normalization/success/prelude/List/concatMap/*.dhall
dhall-lang/tests/normalization/success/prelude/List/filter/*.dhall
dhall-lang/tests/normalization/success/prelude/List/filter/*.dhall
dhall-lang/tests/normalization/success/prelude/List/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/List/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/List/generate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/generate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/head/*.dhall
dhall-lang/tests/normalization/success/prelude/List/head/*.dhall
dhall-lang/tests/normalization/success/prelude/List/indexed/*.dhall
dhall-lang/tests/normalization/success/prelude/List/indexed/*.dhall
dhall-lang/tests/normalization/success/prelude/List/iterate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/iterate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/last/*.dhall
dhall-lang/tests/normalization/success/prelude/List/last/*.dhall
dhall-lang/tests/normalization/success/prelude/List/length/*.dhall
dhall-lang/tests/normalization/success/prelude/List/length/*.dhall
dhall-lang/tests/normalization/success/prelude/List/map/*.dhall
dhall-lang/tests/normalization/success/prelude/List/map/*.dhall
dhall-lang/tests/normalization/success/prelude/List/null/*.dhall
dhall-lang/tests/normalization/success/prelude/List/null/*.dhall
dhall-lang/tests/normalization/success/prelude/List/replicate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/replicate/*.dhall
dhall-lang/tests/normalization/success/prelude/List/reverse/*.dhall
dhall-lang/tests/normalization/success/prelude/List/reverse/*.dhall
dhall-lang/tests/normalization/success/prelude/List/shifted/*.dhall
dhall-lang/tests/normalization/success/prelude/List/shifted/*.dhall
dhall-lang/tests/normalization/success/prelude/List/unzip/*.dhall
dhall-lang/tests/normalization/success/prelude/List/unzip/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/enumerate/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/enumerate/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/even/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/even/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/isZero/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/isZero/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/odd/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/odd/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/product/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/product/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/show/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/sum/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/sum/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/toDouble/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/toDouble/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/toInteger/*.dhall
dhall-lang/tests/normalization/success/prelude/Natural/toInteger/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/all/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/all/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/any/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/any/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/build/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/filter/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/filter/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/fold/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/head/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/head/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/last/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/last/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/length/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/length/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/map/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/map/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/null/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/null/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/toList/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/toList/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/unzip/*.dhall
dhall-lang/tests/normalization/success/prelude/Optional/unzip/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concat/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatMap/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatMap/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatMapSep/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatMapSep/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatSep/*.dhall
dhall-lang/tests/normalization/success/prelude/Text/concatSep/*.dhall
dhall-lang/tests/normalization/success/simple/*.dhall
dhall-lang/tests/normalization/success/simplifications/*.dhall
dhall-lang/tests/parser/failure/*.dhall
dhall-lang/tests/parser/success/*.dhall
dhall-lang/tests/typecheck/failure/*.dhall
dhall-lang/tests/typecheck/success/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/and/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/and/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/even/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/even/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/not/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/not/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/odd/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/odd/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/or/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/or/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Bool/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Double/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Double/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Integer/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Integer/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Integer/toDouble/*.dhall
dhall-lang/tests/typecheck/success/prelude/Integer/toDouble/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/all/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/all/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/any/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/any/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/concatMap/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/concatMap/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/filter/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/filter/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/generate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/generate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/head/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/head/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/indexed/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/indexed/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/iterate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/iterate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/last/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/last/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/length/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/length/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/map/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/map/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/null/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/null/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/replicate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/replicate/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/reverse/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/reverse/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/shifted/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/shifted/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/unzip/*.dhall
dhall-lang/tests/typecheck/success/prelude/List/unzip/*.dhall
dhall-lang/tests/typecheck/success/prelude/Monoid/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/enumerate/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/enumerate/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/even/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/even/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/isZero/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/isZero/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/odd/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/odd/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/product/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/product/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/show/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/sum/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/sum/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/toDouble/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/toDouble/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/toInteger/*.dhall
dhall-lang/tests/typecheck/success/prelude/Natural/toInteger/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/all/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/all/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/any/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/any/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/build/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/filter/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/filter/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/fold/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/head/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/head/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/last/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/last/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/length/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/length/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/map/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/map/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/null/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/null/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/toList/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/toList/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/unzip/*.dhall
dhall-lang/tests/typecheck/success/prelude/Optional/unzip/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concat/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatMap/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatMap/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatMapSep/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatMapSep/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatSep/*.dhall
dhall-lang/tests/typecheck/success/prelude/Text/concatSep/*.dhall
dhall-lang/tests/typecheck/success/simple/access/*.dhall
dhall-lang/tests/typecheck/success/simple/*.dhall
tests/format/*.dhall
tests/import/data/fieldOrder/*.dhall
tests/import/data/foo/bar/*.dhall
tests/import/failure/*.dhall
tests/import/success/*.dhall
tests/lint/success/*.dhall
tests/normalization/success/*.dhall
tests/normalization/success/haskell-tutorial/access/*.dhall
tests/normalization/success/haskell-tutorial/combineTypes/*.dhall
tests/normalization/success/haskell-tutorial/prefer/*.dhall
tests/normalization/success/haskell-tutorial/projection/*.dhall
tests/normalization/success/multiline/*.dhall
tests/normalization/success/prelude/Bool/and/*.dhall
tests/normalization/success/prelude/Bool/and/*.dhall
tests/normalization/success/prelude/Bool/build/*.dhall
tests/normalization/success/prelude/Bool/build/*.dhall
tests/normalization/success/prelude/Bool/even/*.dhall
tests/normalization/success/prelude/Bool/even/*.dhall
tests/normalization/success/prelude/Bool/fold/*.dhall
tests/normalization/success/prelude/Bool/fold/*.dhall
tests/normalization/success/prelude/Bool/not/*.dhall
tests/normalization/success/prelude/Bool/not/*.dhall
tests/normalization/success/prelude/Bool/odd/*.dhall
tests/normalization/success/prelude/Bool/odd/*.dhall
tests/normalization/success/prelude/Bool/or/*.dhall
tests/normalization/success/prelude/Bool/or/*.dhall
tests/normalization/success/prelude/Bool/show/*.dhall
tests/normalization/success/prelude/Bool/show/*.dhall
tests/normalization/success/prelude/Double/show/*.dhall
tests/normalization/success/prelude/Double/show/*.dhall
tests/normalization/success/prelude/Integer/show/*.dhall
tests/normalization/success/prelude/Integer/show/*.dhall
tests/normalization/success/prelude/Integer/toDouble/*.dhall
tests/normalization/success/prelude/Integer/toDouble/*.dhall
tests/normalization/success/prelude/List/all/*.dhall
tests/normalization/success/prelude/List/all/*.dhall
tests/normalization/success/prelude/List/any/*.dhall
tests/normalization/success/prelude/List/any/*.dhall
tests/normalization/success/prelude/List/build/*.dhall
tests/normalization/success/prelude/List/build/*.dhall
tests/normalization/success/prelude/List/concat/*.dhall
tests/normalization/success/prelude/List/concat/*.dhall
tests/normalization/success/prelude/List/concatMap/*.dhall
tests/normalization/success/prelude/List/concatMap/*.dhall
tests/normalization/success/prelude/List/filter/*.dhall
tests/normalization/success/prelude/List/filter/*.dhall
tests/normalization/success/prelude/List/fold/*.dhall
tests/normalization/success/prelude/List/fold/*.dhall
tests/normalization/success/prelude/List/generate/*.dhall
tests/normalization/success/prelude/List/generate/*.dhall
tests/normalization/success/prelude/List/head/*.dhall
tests/normalization/success/prelude/List/head/*.dhall
tests/normalization/success/prelude/List/indexed/*.dhall
tests/normalization/success/prelude/List/indexed/*.dhall
tests/normalization/success/prelude/List/iterate/*.dhall
tests/normalization/success/prelude/List/iterate/*.dhall
tests/normalization/success/prelude/List/last/*.dhall
tests/normalization/success/prelude/List/last/*.dhall
tests/normalization/success/prelude/List/length/*.dhall
tests/normalization/success/prelude/List/length/*.dhall
tests/normalization/success/prelude/List/map/*.dhall
tests/normalization/success/prelude/List/map/*.dhall
tests/normalization/success/prelude/List/null/*.dhall
tests/normalization/success/prelude/List/null/*.dhall
tests/normalization/success/prelude/List/replicate/*.dhall
tests/normalization/success/prelude/List/replicate/*.dhall
tests/normalization/success/prelude/List/reverse/*.dhall
tests/normalization/success/prelude/List/reverse/*.dhall
tests/normalization/success/prelude/List/shifted/*.dhall
tests/normalization/success/prelude/List/shifted/*.dhall
tests/normalization/success/prelude/List/unzip/*.dhall
tests/normalization/success/prelude/List/unzip/*.dhall
tests/normalization/success/prelude/Natural/build/*.dhall
tests/normalization/success/prelude/Natural/build/*.dhall
tests/normalization/success/prelude/Natural/enumerate/*.dhall
tests/normalization/success/prelude/Natural/enumerate/*.dhall
tests/normalization/success/prelude/Natural/even/*.dhall
tests/normalization/success/prelude/Natural/even/*.dhall
tests/normalization/success/prelude/Natural/fold/*.dhall
tests/normalization/success/prelude/Natural/fold/*.dhall
tests/normalization/success/prelude/Natural/isZero/*.dhall
tests/normalization/success/prelude/Natural/isZero/*.dhall
tests/normalization/success/prelude/Natural/odd/*.dhall
tests/normalization/success/prelude/Natural/odd/*.dhall
tests/normalization/success/prelude/Natural/product/*.dhall
tests/normalization/success/prelude/Natural/product/*.dhall
tests/normalization/success/prelude/Natural/show/*.dhall
tests/normalization/success/prelude/Natural/show/*.dhall
tests/normalization/success/prelude/Natural/sum/*.dhall
tests/normalization/success/prelude/Natural/sum/*.dhall
tests/normalization/success/prelude/Natural/toDouble/*.dhall
tests/normalization/success/prelude/Natural/toDouble/*.dhall
tests/normalization/success/prelude/Natural/toInteger/*.dhall
tests/normalization/success/prelude/Natural/toInteger/*.dhall
tests/normalization/success/prelude/Optional/all/*.dhall
tests/normalization/success/prelude/Optional/all/*.dhall
tests/normalization/success/prelude/Optional/any/*.dhall
tests/normalization/success/prelude/Optional/any/*.dhall
tests/normalization/success/prelude/Optional/build/*.dhall
tests/normalization/success/prelude/Optional/build/*.dhall
tests/normalization/success/prelude/Optional/concat/*.dhall
tests/normalization/success/prelude/Optional/concat/*.dhall
tests/normalization/success/prelude/Optional/filter/*.dhall
tests/normalization/success/prelude/Optional/filter/*.dhall
tests/normalization/success/prelude/Optional/fold/*.dhall
tests/normalization/success/prelude/Optional/fold/*.dhall
tests/normalization/success/prelude/Optional/head/*.dhall
tests/normalization/success/prelude/Optional/head/*.dhall
tests/normalization/success/prelude/Optional/last/*.dhall
tests/normalization/success/prelude/Optional/last/*.dhall
tests/normalization/success/prelude/Optional/length/*.dhall
tests/normalization/success/prelude/Optional/length/*.dhall
tests/normalization/success/prelude/Optional/map/*.dhall
tests/normalization/success/prelude/Optional/map/*.dhall
tests/normalization/success/prelude/Optional/null/*.dhall
tests/normalization/success/prelude/Optional/null/*.dhall
tests/normalization/success/prelude/Optional/toList/*.dhall
tests/normalization/success/prelude/Optional/toList/*.dhall
tests/normalization/success/prelude/Optional/unzip/*.dhall
tests/normalization/success/prelude/Optional/unzip/*.dhall
tests/normalization/success/prelude/Text/concat/*.dhall
tests/normalization/success/prelude/Text/concat/*.dhall
tests/normalization/success/prelude/Text/concatMap/*.dhall
tests/normalization/success/prelude/Text/concatMap/*.dhall
tests/normalization/success/prelude/Text/concatMapSep/*.dhall
tests/normalization/success/prelude/Text/concatMapSep/*.dhall
tests/normalization/success/prelude/Text/concatSep/*.dhall
tests/normalization/success/prelude/Text/concatSep/*.dhall
tests/normalization/success/simple/*.dhall
tests/normalization/success/simplifications/*.dhall
tests/parser/failure/*.dhall
tests/parser/success/*.dhall
tests/regression/*.dhall
tests/tutorial/*.dhall
tests/typecheck/failure/*.dhall
tests/typecheck/success/*.dhall
tests/typecheck/success/prelude/Bool/and/*.dhall
tests/typecheck/success/prelude/Bool/and/*.dhall
tests/typecheck/success/prelude/Bool/build/*.dhall
tests/typecheck/success/prelude/Bool/build/*.dhall
tests/typecheck/success/prelude/Bool/even/*.dhall
tests/typecheck/success/prelude/Bool/even/*.dhall
tests/typecheck/success/prelude/Bool/fold/*.dhall
tests/typecheck/success/prelude/Bool/fold/*.dhall
tests/typecheck/success/prelude/Bool/not/*.dhall
tests/typecheck/success/prelude/Bool/not/*.dhall
tests/typecheck/success/prelude/Bool/odd/*.dhall
tests/typecheck/success/prelude/Bool/odd/*.dhall
tests/typecheck/success/prelude/Bool/or/*.dhall
tests/typecheck/success/prelude/Bool/or/*.dhall
tests/typecheck/success/prelude/Bool/show/*.dhall
tests/typecheck/success/prelude/Bool/show/*.dhall
tests/typecheck/success/prelude/Double/show/*.dhall
tests/typecheck/success/prelude/Double/show/*.dhall
tests/typecheck/success/prelude/Integer/show/*.dhall
tests/typecheck/success/prelude/Integer/show/*.dhall
tests/typecheck/success/prelude/Integer/toDouble/*.dhall
tests/typecheck/success/prelude/Integer/toDouble/*.dhall
tests/typecheck/success/prelude/List/all/*.dhall
tests/typecheck/success/prelude/List/all/*.dhall
tests/typecheck/success/prelude/List/any/*.dhall
tests/typecheck/success/prelude/List/any/*.dhall
tests/typecheck/success/prelude/List/build/*.dhall
tests/typecheck/success/prelude/List/build/*.dhall
tests/typecheck/success/prelude/List/concat/*.dhall
tests/typecheck/success/prelude/List/concat/*.dhall
tests/typecheck/success/prelude/List/concatMap/*.dhall
tests/typecheck/success/prelude/List/concatMap/*.dhall
tests/typecheck/success/prelude/List/filter/*.dhall
tests/typecheck/success/prelude/List/filter/*.dhall
tests/typecheck/success/prelude/List/fold/*.dhall
tests/typecheck/success/prelude/List/fold/*.dhall
tests/typecheck/success/prelude/List/generate/*.dhall
tests/typecheck/success/prelude/List/generate/*.dhall
tests/typecheck/success/prelude/List/head/*.dhall
tests/typecheck/success/prelude/List/head/*.dhall
tests/typecheck/success/prelude/List/indexed/*.dhall
tests/typecheck/success/prelude/List/indexed/*.dhall
tests/typecheck/success/prelude/List/iterate/*.dhall
tests/typecheck/success/prelude/List/iterate/*.dhall
tests/typecheck/success/prelude/List/last/*.dhall
tests/typecheck/success/prelude/List/last/*.dhall
tests/typecheck/success/prelude/List/length/*.dhall
tests/typecheck/success/prelude/List/length/*.dhall
tests/typecheck/success/prelude/List/map/*.dhall
tests/typecheck/success/prelude/List/map/*.dhall
tests/typecheck/success/prelude/List/null/*.dhall
tests/typecheck/success/prelude/List/null/*.dhall
tests/typecheck/success/prelude/List/replicate/*.dhall
tests/typecheck/success/prelude/List/replicate/*.dhall
tests/typecheck/success/prelude/List/reverse/*.dhall
tests/typecheck/success/prelude/List/reverse/*.dhall
tests/typecheck/success/prelude/List/shifted/*.dhall
tests/typecheck/success/prelude/List/shifted/*.dhall
tests/typecheck/success/prelude/List/unzip/*.dhall
tests/typecheck/success/prelude/List/unzip/*.dhall
tests/typecheck/success/prelude/Monoid/*.dhall
tests/typecheck/success/prelude/Natural/build/*.dhall
tests/typecheck/success/prelude/Natural/build/*.dhall
tests/typecheck/success/prelude/Natural/enumerate/*.dhall
tests/typecheck/success/prelude/Natural/enumerate/*.dhall
tests/typecheck/success/prelude/Natural/even/*.dhall
tests/typecheck/success/prelude/Natural/even/*.dhall
tests/typecheck/success/prelude/Natural/fold/*.dhall
tests/typecheck/success/prelude/Natural/fold/*.dhall
tests/typecheck/success/prelude/Natural/isZero/*.dhall
tests/typecheck/success/prelude/Natural/isZero/*.dhall
tests/typecheck/success/prelude/Natural/odd/*.dhall
tests/typecheck/success/prelude/Natural/odd/*.dhall
tests/typecheck/success/prelude/Natural/product/*.dhall
tests/typecheck/success/prelude/Natural/product/*.dhall
tests/typecheck/success/prelude/Natural/show/*.dhall
tests/typecheck/success/prelude/Natural/show/*.dhall
tests/typecheck/success/prelude/Natural/sum/*.dhall
tests/typecheck/success/prelude/Natural/sum/*.dhall
tests/typecheck/success/prelude/Natural/toDouble/*.dhall
tests/typecheck/success/prelude/Natural/toDouble/*.dhall
tests/typecheck/success/prelude/Natural/toInteger/*.dhall
tests/typecheck/success/prelude/Natural/toInteger/*.dhall
tests/typecheck/success/prelude/Optional/all/*.dhall
tests/typecheck/success/prelude/Optional/all/*.dhall
tests/typecheck/success/prelude/Optional/any/*.dhall
tests/typecheck/success/prelude/Optional/any/*.dhall
tests/typecheck/success/prelude/Optional/build/*.dhall
tests/typecheck/success/prelude/Optional/build/*.dhall
tests/typecheck/success/prelude/Optional/concat/*.dhall
tests/typecheck/success/prelude/Optional/concat/*.dhall
tests/typecheck/success/prelude/Optional/filter/*.dhall
tests/typecheck/success/prelude/Optional/filter/*.dhall
tests/typecheck/success/prelude/Optional/fold/*.dhall
tests/typecheck/success/prelude/Optional/fold/*.dhall
tests/typecheck/success/prelude/Optional/head/*.dhall
tests/typecheck/success/prelude/Optional/head/*.dhall
tests/typecheck/success/prelude/Optional/last/*.dhall
tests/typecheck/success/prelude/Optional/last/*.dhall
tests/typecheck/success/prelude/Optional/length/*.dhall
tests/typecheck/success/prelude/Optional/length/*.dhall
tests/typecheck/success/prelude/Optional/map/*.dhall
tests/typecheck/success/prelude/Optional/map/*.dhall
tests/typecheck/success/prelude/Optional/null/*.dhall
tests/typecheck/success/prelude/Optional/null/*.dhall
tests/typecheck/success/prelude/Optional/toList/*.dhall
tests/typecheck/success/prelude/Optional/toList/*.dhall
tests/typecheck/success/prelude/Optional/unzip/*.dhall
tests/typecheck/success/prelude/Optional/unzip/*.dhall
tests/typecheck/success/prelude/Text/concat/*.dhall
tests/typecheck/success/prelude/Text/concat/*.dhall
tests/typecheck/success/prelude/Text/concatMap/*.dhall
tests/typecheck/success/prelude/Text/concatMap/*.dhall
tests/typecheck/success/prelude/Text/concatMapSep/*.dhall
tests/typecheck/success/prelude/Text/concatMapSep/*.dhall
tests/typecheck/success/prelude/Text/concatSep/*.dhall
tests/typecheck/success/prelude/Text/concatSep/*.dhall
tests/typecheck/success/simple/access/*.dhall
tests/typecheck/success/simple/*.dhall
Source-Repository head
Type: git

View File

@ -23,38 +23,34 @@ tests =
[ shouldFail
3
"alternative of several unset env variables"
"./tests/import/failure/alternativeEnv.dhall"
"./dhall-lang/tests/import/failure/alternativeEnv.dhall"
, shouldFail
1
"alternative of env variable and missing"
"./tests/import/failure/alternativeEnvMissing.dhall"
"./dhall-lang/tests/import/failure/alternativeEnvMissing.dhall"
, shouldFail
0
"just missing"
"./tests/import/failure/missing.dhall"
"./dhall-lang/tests/import/failure/missing.dhall"
, shouldNotFail
"alternative of env variable, missing, and a Natural"
"./tests/import/success/alternativeEnvNaturalA.dhall"
"./dhall-lang/tests/import/success/alternativeEnvNaturalA.dhall"
, shouldNotFail
"alternative of env variable and a Natural"
"./tests/import/success/alternativeEnvSimpleA.dhall"
"./dhall-lang/tests/import/success/alternativeEnvSimpleA.dhall"
, shouldNotFail
"alternative of a Natural and missing"
"./tests/import/success/alternativeNaturalA.dhall"
"./dhall-lang/tests/import/success/alternativeNaturalA.dhall"
]
, Test.Tasty.testGroup "import relative to argument"
[ shouldNotFailRelative
"works"
"./tests/import/data/foo/bar"
"./tests/import/success/relative.dhall"
, shouldNotFailRelative
"a semantic integrity check if fields are reordered"
"./tests/import/success/"
"./tests/import/success/fieldOrderA.dhall"
"./dhall-lang/tests/import/success/"
"./dhall-lang/tests/import/success/fieldOrderA.dhall"
, shouldNotFailRelative
"a semantic integrity check when importing an expression using `constructors`"
"./tests/import/success/"
"./tests/import/success/issue553B.dhall"
"./dhall-lang/tests/import/success/"
"./dhall-lang/tests/import/success/issue553B.dhall"
]
]

View File

@ -276,8 +276,8 @@ nestedReduction = testCase "doubleReduction" $ do
should :: Text -> Text -> TestTree
should name basename =
Test.Tasty.HUnit.testCase (Data.Text.unpack name) $ do
let actualCode = "./tests/normalization/" <> basename <> "A.dhall"
let expectedCode = "./tests/normalization/" <> basename <> "B.dhall"
let actualCode = "./dhall-lang/tests/normalization/" <> basename <> "A.dhall"
let expectedCode = "./dhall-lang/tests/normalization/" <> basename <> "B.dhall"
actualExpr <- case Dhall.Parser.exprFromText mempty actualCode of
Left err -> Control.Exception.throwIO err

View File

@ -18,155 +18,152 @@ tests =
[ Test.Tasty.testGroup "whitespace"
[ shouldParse
"prefix/suffix"
"./tests/parser/success/whitespace"
"./dhall-lang/tests/parser/success/whitespace"
, shouldParse
"block comment"
"./tests/parser/success/blockComment"
"./dhall-lang/tests/parser/success/blockComment"
, shouldParse
"nested block comment"
"./tests/parser/success/nestedBlockComment"
"./dhall-lang/tests/parser/success/nestedBlockComment"
, shouldParse
"line comment"
"./tests/parser/success/lineComment"
"./dhall-lang/tests/parser/success/lineComment"
, shouldParse
"Unicode comment"
"./tests/parser/success/unicodeComment"
"./dhall-lang/tests/parser/success/unicodeComment"
, shouldParse
"whitespace buffet"
"./tests/parser/success/whitespaceBuffet"
"./dhall-lang/tests/parser/success/whitespaceBuffet"
]
, shouldParse
"label"
"./tests/parser/success/label"
"./dhall-lang/tests/parser/success/label"
, shouldParse
"quoted label"
"./tests/parser/success/quotedLabel"
"./dhall-lang/tests/parser/success/quotedLabel"
, shouldParse
"double quoted string"
"./tests/parser/success/doubleQuotedString"
"./dhall-lang/tests/parser/success/doubleQuotedString"
, shouldParse
"Unicode double quoted string"
"./tests/parser/success/unicodeDoubleQuotedString"
"./dhall-lang/tests/parser/success/unicodeDoubleQuotedString"
, shouldParse
"escaped double quoted string"
"./tests/parser/success/escapedDoubleQuotedString"
"./dhall-lang/tests/parser/success/escapedDoubleQuotedString"
, shouldParse
"interpolated double quoted string"
"./tests/parser/success/interpolatedDoubleQuotedString"
"./dhall-lang/tests/parser/success/interpolatedDoubleQuotedString"
, shouldParse
"single quoted string"
"./tests/parser/success/singleQuotedString"
"./dhall-lang/tests/parser/success/singleQuotedString"
, shouldParse
"escaped single quoted string"
"./tests/parser/success/escapedSingleQuotedString"
"./dhall-lang/tests/parser/success/escapedSingleQuotedString"
, shouldParse
"interpolated single quoted string"
"./tests/parser/success/interpolatedSingleQuotedString"
"./dhall-lang/tests/parser/success/interpolatedSingleQuotedString"
, shouldParse
"double"
"./tests/parser/success/double"
"./dhall-lang/tests/parser/success/double"
, shouldParse
"natural"
"./tests/parser/success/natural"
"./dhall-lang/tests/parser/success/natural"
, shouldParse
"identifier"
"./tests/parser/success/identifier"
"./dhall-lang/tests/parser/success/identifier"
, shouldParse
"paths"
"./tests/parser/success/paths"
"./dhall-lang/tests/parser/success/paths"
, shouldParse
"path termination"
"./tests/parser/success/pathTermination"
"./dhall-lang/tests/parser/success/pathTermination"
, shouldParse
"urls"
"./tests/parser/success/urls"
"./dhall-lang/tests/parser/success/urls"
, shouldParse
"environmentVariables"
"./tests/parser/success/environmentVariables"
"./dhall-lang/tests/parser/success/environmentVariables"
, shouldParse
"lambda"
"./tests/parser/success/lambda"
"./dhall-lang/tests/parser/success/lambda"
, shouldParse
"if then else"
"./tests/parser/success/ifThenElse"
"./dhall-lang/tests/parser/success/ifThenElse"
, shouldParse
"let"
"./tests/parser/success/let"
"./dhall-lang/tests/parser/success/let"
, shouldParse
"forall"
"./tests/parser/success/forall"
"./dhall-lang/tests/parser/success/forall"
, shouldParse
"function type"
"./tests/parser/success/functionType"
"./dhall-lang/tests/parser/success/functionType"
, shouldParse
"operators"
"./tests/parser/success/operators"
"./dhall-lang/tests/parser/success/operators"
, shouldParse
"annotations"
"./tests/parser/success/annotations"
"./dhall-lang/tests/parser/success/annotations"
, shouldParse
"merge"
"./tests/parser/success/merge"
"./dhall-lang/tests/parser/success/merge"
, shouldParse
"constructors"
"./tests/parser/success/constructors"
"./dhall-lang/tests/parser/success/constructors"
, shouldParse
"fields"
"./tests/parser/success/fields"
"./dhall-lang/tests/parser/success/fields"
, shouldParse
"record"
"./tests/parser/success/record"
"./dhall-lang/tests/parser/success/record"
, shouldParse
"union"
"./tests/parser/success/union"
"./dhall-lang/tests/parser/success/union"
, shouldParse
"list"
"./tests/parser/success/list"
"./dhall-lang/tests/parser/success/list"
, shouldParse
"builtins"
"./tests/parser/success/builtins"
"./dhall-lang/tests/parser/success/builtins"
, shouldParse
"import alternatives"
"./tests/parser/success/importAlt"
"./dhall-lang/tests/parser/success/importAlt"
, shouldParse
"large expression"
"./tests/parser/success/largeExpression"
"./dhall-lang/tests/parser/success/largeExpression"
, shouldParse
"names that begin with reserved identifiers"
"./tests/parser/success/reservedPrefix"
"./dhall-lang/tests/parser/success/reservedPrefix"
, shouldParse
"interpolated expressions with leading whitespace"
"./tests/parser/success/template"
"./dhall-lang/tests/parser/success/template"
, shouldParse
"collections with type annotations containing imports"
"./tests/parser/success/collectionImportType"
"./dhall-lang/tests/parser/success/collectionImportType"
, shouldParse
"a parenthesized custom header import"
"./tests/parser/success/parenthesizeUsing"
"./dhall-lang/tests/parser/success/parenthesizeUsing"
, shouldNotParse
"accessing a field of an import without parentheses"
"./tests/parser/failure/importAccess.dhall"
"./dhall-lang/tests/parser/failure/importAccess.dhall"
, shouldParse
"Sort"
"./tests/parser/success/sort"
"./dhall-lang/tests/parser/success/sort"
, shouldParse
"quoted path components"
"./tests/parser/success/quotedPaths"
"./dhall-lang/tests/parser/success/quotedPaths"
, shouldNotParse
"positive double out of bounds"
"./tests/parser/failure/doubleBoundsPos.dhall"
"./dhall-lang/tests/parser/failure/doubleBoundsPos.dhall"
, shouldNotParse
"negative double out of bounds"
"./tests/parser/failure/doubleBoundsNeg.dhall"
"./dhall-lang/tests/parser/failure/doubleBoundsNeg.dhall"
, shouldParse
"as Text"
"./tests/parser/success/asText"
, shouldParse
"custom headers"
"./tests/parser/success/customHeaders"
"./dhall-lang/tests/parser/success/asText"
, shouldNotParse
"a multi-line literal without an initial newline"
"./tests/parser/failure/mandatoryNewline.dhall"
"./dhall-lang/tests/parser/failure/mandatoryNewline.dhall"
]
shouldParse :: Text -> FilePath -> TestTree

View File

@ -96,8 +96,8 @@ accessTypeChecks =
should :: Text -> Text -> TestTree
should name basename =
Test.Tasty.HUnit.testCase (Data.Text.unpack name) $ do
let actualCode = "./tests/typecheck/" <> basename <> "A.dhall"
let expectedCode = "./tests/typecheck/" <> basename <> "B.dhall"
let actualCode = "./dhall-lang/tests/typecheck/" <> basename <> "A.dhall"
let expectedCode = "./dhall-lang/tests/typecheck/" <> basename <> "B.dhall"
actualExpr <- case Dhall.Parser.exprFromText mempty actualCode of
Left err -> Control.Exception.throwIO err
@ -116,7 +116,7 @@ should name basename =
shouldNotTypeCheck :: Text -> Text -> TestTree
shouldNotTypeCheck name basename =
Test.Tasty.HUnit.testCase (Data.Text.unpack name) $ do
let code = "./tests/typecheck/" <> basename <> ".dhall"
let code = "./dhall-lang/tests/typecheck/" <> basename <> ".dhall"
expression <- case Dhall.Parser.exprFromText mempty code of
Left exception -> Control.Exception.throwIO exception

View File

@ -1 +0,0 @@
{ foo = 1, bar = True }

View File

@ -1 +0,0 @@
{ bar = True, foo = 1 }

View File

@ -1 +0,0 @@
42

View File

@ -1 +0,0 @@
env:UNSET1 as Text ? env:UNSET2 ? missing ? env:UNSET3

View File

@ -1 +0,0 @@
env:UNSET ? missing

View File

@ -1 +0,0 @@
missing

View File

@ -1 +0,0 @@
env:UNSET1 as Text ? env:UNSET2 ? missing ? env:UNSET3 ? 2

View File

@ -1 +0,0 @@
env:UNSET ? 3

View File

@ -1 +0,0 @@
4 ? missing

View File

@ -1,5 +0,0 @@
{ example0 =
../data/fieldOrder/1.dhall sha256:261b3aca810973f81175d19b16226aaa5e76df7ea51c5d45e890dd6cdc49abbd
, example1 =
../data/fieldOrder/2.dhall sha256:261b3aca810973f81175d19b16226aaa5e76df7ea51c5d45e890dd6cdc49abbd
}

View File

@ -1 +0,0 @@
{ example0 = { bar = True, foo = 1 }, example1 = { bar = True, foo = 1 } }

View File

@ -1,5 +0,0 @@
let T = < A : {} | B : {} >
in let t = constructors T
in t

View File

@ -1 +0,0 @@
./issue553A.dhall sha256:250873549ddd262f27f3b197b2a2631fb569e7bdfe12446fc0912b4a2359a83e

View File

@ -1,2 +0,0 @@
-- This file assumes its base directory is actually ./data/foo/bar/
./a.dhall : Natural

View File

@ -1 +0,0 @@
{ x = "foo" }.x

View File

@ -1 +0,0 @@
< Foo : Text | Bar : Natural >.Foo

View File

@ -1 +0,0 @@
λ(Foo : Text) → < Foo = Foo | Bar : Natural >

View File

@ -1 +0,0 @@
{ foo : { bar : Text } } ⩓ { foo : { baz : Bool }, qux : Integer }

View File

@ -1 +0,0 @@
{ foo : { bar : Text, baz : Bool }, qux : Integer }

View File

@ -1 +0,0 @@
{ foo : { bar : Text } } //\\ { foo : { baz : Bool }, qux : Integer }

View File

@ -1 +0,0 @@
{ foo : { bar : Text, baz : Bool }, qux : Integer }

View File

@ -1 +0,0 @@
{ foo = 1, bar = "ABC" } // { baz = True }

View File

@ -1 +0,0 @@
{ bar = "ABC", baz = True, foo = 1 }

View File

@ -1 +0,0 @@
{ x = 1, y = True, z = "ABC" }.{ x, y }

View File

@ -1 +0,0 @@
{ x = 1, y = True }

View File

@ -1,9 +0,0 @@
-- Verify that an implementation is processing escape sequences correctly
''
''${
'''
$
"
\
''

View File

@ -1 +0,0 @@
"\${\n''\n\$\n\"\n\\\n"

View File

@ -1,15 +0,0 @@
{- The indent is computed as the minimum number of leading spaces over all lines
in a multi-line literal, including the line right before the closing quotes.
In this case, there are three lines:
* The first line containing " foo" with two leading spaces
* The second line containing " bar" with two leading spaces
* The third line containing " " with two leading spaces
Therefore we strip two leading spaces from all three lines
-}
''
foo
bar
''

View File

@ -1,7 +0,0 @@
-- Non-trivial example that combines several multi-line literal features
λ(x : Text) → ''
${x} baz
bar
foo
''

View File

@ -1 +0,0 @@
λ(x : Text) → "${x} baz\n bar\n foo\n "

View File

@ -1,16 +0,0 @@
{- The indent is computed as the minimum number of leading spaces over all lines
in a multi-line literal, including the line right before the closing quotes.
In this case, there are three lines:
* The first line containing " foo" with two leading spaces
* The second line containing " bar" with two leading spaces
* The third line containing "" with zero leading spaces
Since the last line has zero leading spaces, the minimum number of leading
spaces over all three lines is zero, so we don't strip any spaces.
-}
''
foo
bar
''

View File

@ -1,9 +0,0 @@
{- This example verifies that an implementation is correctly breaking leading
spaces at interpolated expressions. The first line has the fewest number of
leading spaces (2) due to the interruption by the interpolated expression.
-}
''
${Natural/show 1} foo
bar
''

View File

@ -1 +0,0 @@
"${Natural/show 1} foo\n bar\n"

View File

@ -1,8 +0,0 @@
{- A comment within the interior of a multi-line literal counts as part of the
literal
-}
''
-- Hello
{- world -}
''

View File

@ -1 +0,0 @@
"-- Hello\n{- world -}\n"

View File

@ -1,6 +0,0 @@
{- This is how you encode a multi-line literal that contains no newlines
The leading newline is stripped
-}
''
foo''

View File

@ -1,7 +0,0 @@
{- Verify that an implementation is correctly preserving newlines in the
corresponding double-quoted literal
-}
''
foo
bar''

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.and [ True, False, True ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.and ([] : List Bool)

View File

@ -1,2 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.build
(λ(bool : Type) → λ(true : bool) → λ(false : bool) → true)

View File

@ -1,2 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.build
(λ(bool : Type) → λ(true : bool) → λ(false : bool) → false)

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.even [ False, True, False ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.even [ False, True ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.even [ False ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.even ([] : List Bool)

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.fold True Natural 0 1

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.fold False Natural 0 1

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.not True

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.not False

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.odd [ True, False, True ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.odd [ True, False ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.odd [ True ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.odd ([] : List Bool)

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.or [ True, False, True ]

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.or ([] : List Bool)

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.show True

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Bool`.show False

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Double`.show -3.1

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Double`.show 0.4

View File

@ -1 +0,0 @@
(../../../../../../Prelude/package.dhall).`Integer`.show -3

Some files were not shown because too many files have changed in this diff Show More