dhall-haskell/dhall-lsp-server/dhall-lsp-server.cabal
Frederik Ramcke 5f3b05a8f2 dhall-lsp-server: Implement completion support (#1190)
* Implement completion support

Completes the following:
- environment variables
- local imports
- identifiers in scope (as well as built-ins)
- record projections
- union constructors

* Add support for general dependent types

Removes the non-dependent let path. Needed since #1164 added support for
general dependent types.

* Remove unused import

* Use monad instance to cast between `Expr Src _`

As suggested by @Gabriel439: Use `typeOf (do _ <- expr; holeExpr)`
instead of `fmap undefined expr`. In the absence of `Embed` constructors
(in this case `Import`s) the two are equivalent.

* Simplify completeFromContext

Caught by @Gabriel439

* Remove debug code

* Add 1s timeout to listDirectory call

As pointed out by @Gabriel439, listDirectory can be a potentially
expensive operation. Adding a timeout should improve the user
experience.

* Fix unclean merge
2019-08-07 14:11:59 +00:00

105 lines
3.4 KiB
Plaintext

cabal-version: 1.12
name: dhall-lsp-server
Version: 1.0.0
description: Please see the README on GitHub at <https://github.com/githubuser/dhall-lsp-server#readme>
homepage: https://github.com/dhall-lang/dhall-haskell/dhall-lsp-server#readme
bug-reports: https://github.com/dhall-lang/dhall-haskell/issues
author: panaeon
maintainer: Gabriel Gonzalez
copyright: 2019 panaeon
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
source-repository head
type: git
location: https://github.com/dhall-lang/dhall-haskell
library
exposed-modules:
Dhall.LSP.Backend.Completion
Dhall.LSP.Backend.Dhall
Dhall.LSP.Backend.Diagnostics
Dhall.LSP.Backend.Freezing
Dhall.LSP.Backend.Formatting
Dhall.LSP.Backend.Linting
Dhall.LSP.Backend.Parsing
Dhall.LSP.Backend.ToJSON
Dhall.LSP.Backend.Typing
Dhall.LSP.Handlers
Dhall.LSP.Server
Dhall.LSP.State
other-modules:
Paths_dhall_lsp_server
Dhall.LSP.Util
hs-source-dirs:
src
default-extensions: LambdaCase OverloadedStrings FlexibleInstances TypeApplications RecordWildCards ScopedTypeVariables
build-depends:
aeson >= 1.3.1.1 && < 1.5
, aeson-pretty >= 0.8.7 && < 0.9
, base >= 4.7 && < 5
, bytestring >= 0.10.8.2 && < 0.11
, containers >= 0.5.11.0 && < 0.7
, data-default >= 0.7.1.1 && < 0.8
, directory >= 1.2.2.0 && < 1.4
, dhall >= 1.25.0 && < 1.26
, dhall-json >= 1.4 && < 1.5
, filepath >= 1.4.2 && < 1.5
, haskell-lsp >= 0.15.0.0 && < 0.16
, rope-utf16-splay >= 0.3.1.0 && < 0.4
, hslogger >= 1.2.10 && < 1.4
, lens >= 4.16.1 && < 4.18
, lens-family-core >= 1.2.3 && < 2.1
, megaparsec >= 7.0.2 && < 7.1
, mtl >= 2.2.2 && < 2.3
, network-uri >= 2.6.1.0 && < 2.7
, prettyprinter >= 1.2.1 && < 1.4
, text >= 1.2.3.0 && < 1.3
, transformers >= 0.5.5.0 && < 0.6
, unordered-containers >= 0.2.9.0 && < 0.3
, uri-encode >= 1.5.0.5 && < 1.6
default-language: Haskell2010
GHC-Options: -Wall -fwarn-incomplete-uni-patterns
if impl(eta)
buildable: False
executable dhall-lsp-server
main-is: Main.hs
other-modules:
Paths_dhall_lsp_server
hs-source-dirs:
app
default-extensions: LambdaCase OverloadedStrings FlexibleInstances TypeApplications RecordWildCards ScopedTypeVariables
ghc-options: -rtsopts
build-depends:
base >=4.7 && <5
, dhall-lsp-server
, optparse-applicative
default-language: Haskell2010
GHC-Options: -Wall -fwarn-incomplete-uni-patterns
if impl(eta)
buildable: False
Test-Suite doctest
Type: exitcode-stdio-1.0
Hs-Source-Dirs: doctest
Main-Is: Main.hs
GHC-Options: -Wall
Build-Depends:
base ,
directory >= 1.3.1.5 && < 1.4 ,
filepath < 1.5 ,
doctest >= 0.7.0 && < 0.17
Other-Extensions: OverloadedStrings RecordWildCards
Default-Language: Haskell2010
-- `doctest` doesn't work with `MIN_VERSION` macros before GHC 8
--
-- See: https://ghc.haskell.org/trac/ghc/ticket/10970
if impl(ghc < 8.0)
Buildable: False