Skip to content

Commit

Permalink
Version 1.38.1 → 1.39.0 (#2201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 committed Jun 4, 2021
1 parent c2d22e8 commit fee9523
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 31 deletions.
4 changes: 2 additions & 2 deletions dhall-bash/dhall-bash.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall-bash
Version: 1.0.36
Version: 1.0.37
Cabal-Version: >=1.10
Build-Type: Simple
Tested-With: GHC == 8.4.3, GHC == 8.6.1
Expand Down Expand Up @@ -31,7 +31,7 @@ Library
base >= 4.11.0.0 && < 5 ,
bytestring < 0.12,
containers < 0.7 ,
dhall >= 1.36.0 && < 1.39,
dhall >= 1.36.0 && < 1.40,
neat-interpolation < 0.6 ,
shell-escape < 0.3 ,
text >= 0.2 && < 1.3
Expand Down
4 changes: 4 additions & 0 deletions dhall-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.0.6

* Build against `dhall-1.39.0`

1.0.5

* [BUG FIX: Fix index generation](https://github.com/dhall-lang/dhall-haskell/pull/2150)
Expand Down
4 changes: 2 additions & 2 deletions dhall-docs/dhall-docs.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall-docs
Version: 1.0.5
Version: 1.0.6
Cabal-Version: >=1.10
Build-Type: Simple
Tested-With: GHC == 8.6.1
Expand Down Expand Up @@ -67,7 +67,7 @@ Library
containers ,
cryptonite < 0.30,
directory >= 1.3.0.0 && < 1.4 ,
dhall >= 1.38.0 && < 1.39,
dhall >= 1.38.0 && < 1.40,
file-embed >= 0.0.10.0 ,
filepath >= 1.4 && < 1.5 ,
lens-family-core >= 1.0.0 && < 2.2 ,
Expand Down
4 changes: 4 additions & 0 deletions dhall-json/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.7.7

* Build against `dhall-1.39.0`

1.7.6

* [Fix `hashable`-related test failures](https://github.com/dhall-lang/dhall-haskell/pull/2152)
Expand Down
4 changes: 2 additions & 2 deletions dhall-json/dhall-json.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall-json
Version: 1.7.6
Version: 1.7.7
Cabal-Version: >=1.10
Build-Type: Simple
Tested-With: GHC == 8.4.3, GHC == 8.6.1
Expand Down Expand Up @@ -44,7 +44,7 @@ Library
aeson-yaml >= 1.1.0 && < 1.2 ,
bytestring < 0.12,
containers >= 0.5.9 && < 0.7 ,
dhall >= 1.38.0 && < 1.39,
dhall >= 1.39.0 && < 1.40,
exceptions >= 0.8.3 && < 0.11,
filepath < 1.5 ,
lens-family-core >= 1.0.0 && < 2.2 ,
Expand Down
4 changes: 2 additions & 2 deletions dhall-lsp-server/dhall-lsp-server.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dhall-lsp-server
Version: 1.0.14
Version: 1.0.15
cabal-version: 1.12
synopsis: Language Server Protocol (LSP) server for Dhall
homepage: https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server#readme
Expand Down Expand Up @@ -49,7 +49,7 @@ library
, containers >= 0.5.11.0 && < 0.7
, data-default >= 0.7.1.1 && < 0.8
, directory >= 1.2.2.0 && < 1.4
, dhall >= 1.38.0 && < 1.39
, dhall >= 1.38.0 && < 1.40
, dhall-json >= 1.4 && < 1.8
, filepath >= 1.4.2 && < 1.5
, haskell-lsp >= 0.19.0.0 && < 0.25
Expand Down
4 changes: 2 additions & 2 deletions dhall-nix/dhall-nix.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall-nix
Version: 1.1.20
Version: 1.1.21
Cabal-Version: >=1.10
Build-Type: Simple
Tested-With: GHC == 8.0.1
Expand Down Expand Up @@ -30,7 +30,7 @@ Library
base >= 4.11.0.0 && < 5 ,
containers < 0.7 ,
data-fix < 0.4 ,
dhall >= 1.38 && < 1.39,
dhall >= 1.39 && < 1.40,
hnix >= 0.7 && < 0.14,
lens-family-core >= 1.0.0 && < 2.2 ,
neat-interpolation < 0.6 ,
Expand Down
4 changes: 2 additions & 2 deletions dhall-nixpkgs/dhall-nixpkgs.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version: 1.0.4
Version: 1.0.5
Cabal-Version: >=1.10
Name: dhall-nixpkgs
Synopsis: Convert Dhall projects to Nix packages
Expand All @@ -19,7 +19,7 @@ Executable dhall-to-nixpkgs
Build-Depends: base >= 4.11 && < 5
, aeson >= 1.0.0.0 && < 1.6
, data-fix
, dhall >= 1.32.0 && < 1.39
, dhall >= 1.32.0 && < 1.40
, foldl < 1.5
, hnix >= 0.10.1 && < 0.14
, lens-family-core >= 1.0.0 && < 2.2
Expand Down
4 changes: 2 additions & 2 deletions dhall-openapi/dhall-openapi.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Cabal-Version: >=1.10
Name: dhall-openapi
Version: 1.0.0
Version: 1.0.1
Homepage: https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-openapi#dhall-openapi
Author: Fabrizio Ferrai
Maintainer: Gabriel439@gmail.com
Expand Down Expand Up @@ -78,7 +78,7 @@ Library
base >= 4.11.0.0 && < 5 ,
aeson >= 1.0.0.0 && < 1.6 ,
containers >= 0.5.8.0 && < 0.7 ,
dhall >= 1.38.0 && < 1.39 ,
dhall >= 1.38.0 && < 1.40 ,
prettyprinter >= 1.7.0 && < 1.8 ,
scientific >= 0.3.0.0 && < 0.4 ,
sort >= 1.0 && < 1.1 ,
Expand Down
4 changes: 4 additions & 0 deletions dhall-yaml/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.7

* Build against `dhall-1.39.0`

1.2.6

* [Allow bytestring-0.11](https://github.com/dhall-lang/dhall-haskell/pull/2144)
Expand Down
4 changes: 2 additions & 2 deletions dhall-yaml/dhall-yaml.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall-yaml
Version: 1.2.6
Version: 1.2.7
Cabal-Version: >=1.10
Build-Type: Simple
Tested-With: GHC == 8.4.3, GHC == 8.6.1
Expand Down Expand Up @@ -37,7 +37,7 @@ Library
base >= 4.11.0.0 && < 5 ,
aeson >= 1.0.0.0 && < 1.6 ,
bytestring < 0.12,
dhall >= 1.31.0 && < 1.39,
dhall >= 1.31.0 && < 1.40,
dhall-json >= 1.6.0 && < 1.8 ,
optparse-applicative >= 0.14.0.0 && < 0.17,
text >= 0.11.1.0 && < 1.3 ,
Expand Down
34 changes: 34 additions & 0 deletions dhall/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
1.39.0

* [Supports version 20.2.0 of the standard](https://github.com/dhall-lang/dhall-lang/releases/tag/v20.2.0)
* [Add support for Unix shebangs](https://github.com/dhall-lang/dhall-haskell/pull/2175)
* [BREAKING CHANGE TO THE API: `dhall {format,freeze,lint}` now accept multiple
files](https://github.com/dhall-lang/dhall-haskell/pull/2169)
* The `--inplace` flag is no longer necessary and you can now specify
multiple files to update in place on the command line, like
`dhall format foo.dhall bar.dhall`
* The `--inplace` flag is still accepted, but does nothing, and will emit a
warning
* This is a breaking change to the API for formatting/freezing/linting files
because now you can specify multiple inputs instead of one input
* [BREAKING CHANGE: Pre-6.0.0 hashes are no longer supported](https://github.com/dhall-lang/dhall-haskell/pull/2190)
* The interpreter no longer provides backwards compatibility for integrity
checks computed before standard version 6.0.0
* This is a breaking change to the API of the `Dhall.Binary` module, where
certain utilities are no longer parameterized on a `StandardVersion`
* This is also a breaking change to any Dhall code that depended on these
really old integrity checks
* [BUG FIX: Formatting `` now correctly preserves the original character set](https://github.com/dhall-lang/dhall-haskell/pull/2176)
* [BUG FIX: Don't panic on `Text/replace ""`](https://github.com/dhall-lang/dhall-haskell/pull/2184)
* [Quasiquotation support for Dhall](https://github.com/dhall-lang/dhall-haskell/pull/2198)
* You can now convert a Dhall expression to the corresponding syntax tree
using a quasiquoter like this: `[dhall| \x -> x + 2 ]`
* [New `Dhall.Marshal.{Encode,Decode}` modules](https://github.com/dhall-lang/dhall-haskell/pull/2193)
* These modules split up the `Dhall` module into two smaller modules for
encoding and decoding logic, respectively
* The `Dhall` module still re-exports the same functionality as before, so
this is not a breaking change
* [Support GHC 9.0.1](https://github.com/dhall-lang/dhall-haskell/pull/2154)
* Fixes and improvements to code formatting
* [Improve pretty-printing of `sha256`](https://github.com/dhall-lang/dhall-haskell/pull/2189)

1.38.1

* [Add `INLINABLE` annotations in more places](https://github.com/dhall-lang/dhall-haskell/pull/2164)
Expand Down
2 changes: 1 addition & 1 deletion dhall/dhall-lang
Submodule dhall-lang updated 60 files
+2 −2 .github/CONTRIBUTING.md
+44 −0 CHANGELOG.md
+17 −25 Prelude/List/fold.dhall
+60 −0 Prelude/List/foldLeft.dhall
+3 −0 Prelude/List/package.dhall
+8 −15 Prelude/Natural/fold.dhall
+2 −3 Prelude/Optional/fold.dhall
+1 −1 Prelude/XML/package.dhall
+1 −1 Prelude/XML/render
+14 −12 Prelude/XML/render.dhall
+2 −2 Prelude/package.dhall
+1 −1 nixops/logical.nix
+4 −4 nixops/overlay.nix
+1 −1 standard/Parser.hs
+2 −2 standard/dhall.abnf
+1 −1 standard/versioning.md
+1 −1 tests/import/data/cycle.dhall
+0 −1 tests/import/failure/cycle.dhall
+0 −1 tests/import/failure/importBoundary.dhall
+1 −0 tests/import/failure/unit/Cycle.dhall
+1 −0 tests/import/failure/unit/DontRecoverCycle.dhall
+1 −0 tests/import/failure/unit/DontRecoverTypeError.dhall
+0 −0 tests/import/failure/unit/EnvFromRemote.dhall
+1 −0 tests/import/failure/unit/FileMissing.dhall
+0 −0 tests/import/failure/unit/HashMismatch.dhall
+2 −0 tests/import/failure/unit/HashMismatch2.dhall
+0 −0 tests/import/failure/unit/Missing.dhall
+1 −0 tests/import/failure/unit/VarAcrossImportBoundary.dhall
+1 −0 tests/import/success/unit/AlternativeWithVariableA.dhall
+1 −0 tests/import/success/unit/AlternativeWithVariableB.dhall
+1 −0 tests/import/success/unit/AlternativeWithWrongVariable1A.dhall
+1 −0 tests/import/success/unit/AlternativeWithWrongVariable1B.dhall
+1 −0 tests/import/success/unit/AlternativeWithWrongVariable2A.dhall
+1 −0 tests/import/success/unit/AlternativeWithWrongVariable2B.dhall
+5 −0 tests/import/success/unit/DontCacheIfHashA.dhall
+1 −0 tests/import/success/unit/DontCacheIfHashB.dhall
+2 −0 tests/import/success/unit/MixImportModesA.dhall
+1 −0 tests/import/success/unit/MixImportModesB.dhall
+1 −0 tests/import/success/unit/RecoverTransitiveFailureA.dhall
+1 −0 tests/import/success/unit/RecoverTransitiveFailureB.dhall
+1 −0 tests/import/success/unit/cors/PreludeA.dhall
+1 −0 tests/import/success/unit/cors/PreludeB.dhall
+1 −0 tests/normalization/success/regression/ComplexRecordSimplificationA.dhall
+3 −0 tests/normalization/success/regression/ComplexRecordSimplificationB.dhall
+1 −0 tests/normalization/success/regression/ToMapQuotedFieldsA.dhall
+1 −0 tests/normalization/success/regression/ToMapQuotedFieldsB.dhall
+1 −0 tests/normalization/success/unit/RecordSortFieldsA.dhall
+1 −0 tests/normalization/success/unit/RecordSortFieldsB.dhall
+1 −0 tests/normalization/success/unit/RecordTypeSortFieldsA.dhall
+1 −0 tests/normalization/success/unit/RecordTypeSortFieldsB.dhall
+1 −0 tests/normalization/success/unit/TextReplaceOverlappingA.dhall
+1 −0 tests/normalization/success/unit/TextReplaceOverlappingB.dhall
+3 −0 tests/parser/success/unit/ShebangNixA.dhall
+1 −0 tests/parser/success/unit/ShebangNixB.dhallb
+1 −0 tests/parser/success/unit/ShebangNixB.diag
+1 −0 tests/type-inference/failure/unit/AssertAlphaTrap2.dhall
+1 −0 tests/type-inference/failure/unit/WithInfersKind.dhall
+7 −0 tests/type-inference/success/preludeB.dhall
+1 −0 tests/type-inference/success/unit/WithInfersKindA.dhall
+1 −0 tests/type-inference/success/unit/WithInfersKindB.dhall
2 changes: 1 addition & 1 deletion dhall/dhall.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: dhall
Version: 1.38.1
Version: 1.39.0
Cabal-Version: 2.0
Build-Type: Simple
Tested-With: GHC == 8.4.3, GHC == 8.6.1
Expand Down
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Parser/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ parsers :: forall a. Parser a -> Parsers a
parsers embedded = Parsers {..}
where
completeExpression_ =
optional shebang *> whitespace *> expression <* whitespace
many shebang *> whitespace *> expression <* whitespace

shebang = do
_ <- text "#!"
Expand Down
48 changes: 36 additions & 12 deletions dhall/tests/Dhall/Test/Import.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ getTests = do

return path )

failureTests <- Test.Util.discover (Turtle.chars <> ".dhall") failureTest (Turtle.lstree (importDirectory </> "failure"))
failureTests <- Test.Util.discover (Turtle.chars <> ".dhall") failureTest (do
path <- Turtle.lstree (importDirectory </> "failure")

let expectedSuccesses =
[ importDirectory </> "failure/unit/DontRecoverCycle.dhall"
, importDirectory </> "failure/unit/DontRecoverTypeError.dhall"
]

Monad.guard (path `notElem` expectedSuccesses)
return path )

let testTree =
Tasty.testGroup "import tests"
Expand Down Expand Up @@ -84,10 +93,6 @@ successTest path = do

let originalCache = "dhall-lang/tests/import/cache"

let setCache = Turtle.export "XDG_CACHE_HOME"

let unsetCache = Turtle.unset "XDG_CACHE_HOME"

let httpManager =
HTTP.newManager
HTTP.tlsManagerSettings
Expand All @@ -99,24 +104,43 @@ successTest path = do

let usesCache = [ "hashFromCacheA.dhall"
, "unit/asLocation/HashA.dhall"
, "unit/IgnorePoisonedCacheA.dhall"]
, "unit/IgnorePoisonedCacheA.dhall"
, "unit/DontCacheIfHashA.dhall"
]

let endsIn path' = not $ null $ Turtle.match (Turtle.ends path') path
let endsIn path' =
not (null (Turtle.match (Turtle.ends path') (Test.Util.toDhallPath path)))

let buildNewCache = do
tempdir <- Turtle.mktempdir "/tmp" "dhall-cache"
Turtle.liftIO $ Turtle.cptree originalCache tempdir
return tempdir
tempdir <- Turtle.mktempdir "/tmp" "dhall-cache"
Turtle.liftIO (Turtle.cptree originalCache tempdir)
return tempdir

let runTest =
if any endsIn usesCache
then Turtle.runManaged $ do
cacheDir <- buildNewCache
setCache $ Turtle.format Turtle.fp cacheDir

let set = do
m <- Turtle.need "XDG_CACHE_HOME"

Turtle.export "XDG_CACHE_HOME" (Turtle.format Turtle.fp cacheDir)

return m

let reset Nothing = do
Turtle.unset "XDG_CACHE_HOME"
reset (Just x) = do
Turtle.export "XDG_CACHE_HOME" x

_ <- Turtle.managed (Exception.bracket set reset)

_ <- Turtle.liftIO load
unsetCache

return ()
else do
_ <- load

return ()

let handler :: SomeException -> IO ()
Expand Down

0 comments on commit fee9523

Please sign in to comment.