This raises the lower bound on prettyprinter to 1.5.1 since
`removeTrailingWhitespace` is buggy in earlier versions.
This jailbreaks hnix, which isn't compatible with prettyprinter-1.5.1 yet.
Fixes#183, #1400, #1525.
Co-authored-by: Gabriel Gonzalez <Gabriel439@gmail.com>
* Functional tests setup for the LSP server
* Add nix derivation for lsp-test-0.6.1.0
* Register fixture files
* Enable functional tests on appveyor
* Attempt to fix Position errors
* Fix `dhall-lsp-server` to specify a UTF8 locale
Related to https://github.com/dhall-lang/dhall-haskell/issues/1356#issuecomment-536840612
* Specify utf8 encoding for tests
* Add test for hovering functionality
* Add glob to list fixture files
* Remove extra do
* Clean up dhall-lsp-server.cabal
Removes unused dependencies.
* Upgrade to haskell-lsp-0.15.0.0
The stackage LTS version is still 0.8.2 so we need to add this as an
'extra-dep'.
* Display type information as plaintext rather than markdown
* Fix nix build
* Update nix haskell-lsp-types
* Make it no buildable in windows as suggested by @sjakobi
* Use last lts resolver for ghc-8.6.5
* Remove unused stack yaml file
* Use default stack yaml
Note that `dhall-nix` cannot be built on Windows due to its transitive
dependency on the `unix` package.
Also:
* Nix: Enable `-Werror` for `dhall-nix`
* Add support for `toMap` in `dhall-nix`:
\(x : { a : Bool }) -> toMap x
is translated as
x:
(kvs:
map (k:
{
mapKey = k;
mapValue = builtins.getAttr k kvs;
}) (builtins.attrNames kvs)) x
Allow to generare quoted scalars if needed via providing a custom encode
options to Data.Yaml.encodeWith. So far two corner cases from yaml
itself (an empty scalar, and special strings) are omitted in the
implementation.
This commit adds a flag for producing a machine readable listing of
dependencies of a dhall expression.
This flag can be used to integrate dhall more easily to file watchers or
build systems which require such lists of dependencies.
The motivation for this change is:
* To catch build failures in downstream packages whenever we make a breaking
change to the `dhall` API
* To reduce the amount of work I need in order to cut a release for all of
these packages
* To better share Nix/CI-related logic between the projects
Note that I have not yet migrated `dhall-nix` in. I'm waiting for
https://github.com/dhall-lang/dhall-nix/issues/17 to be fixed since
`dhall-nix` is incompatible with later versions of `megaparsec` due to
`hnix`.
* rename previous lts-11 yaml file and add needed extra-deps
* use new lts-12.4
* add import of Data.Monoid.(<>) to make it compilable with base < 4.11 (and stack lts-11)
* add needed extra-deps
Not sure if this is a change you’re interested in. IMO, it’s nice for stack
users even if they don’t use Nix, since it makes the dependencies explicit.
prettyprinter doesn't match on lts-9.0. You get the following error
with stack:
```
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for dhall-1.6.0:
prettyprinter-1.1 must match >=1.1.1 && <1.2 (latest applicable is 1.1.1)
needed since dhall-1.6.0 is a build target.
```