mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-04 05:24:33 +03:00
a0aa013e33
* Remove JSON instances for completions, since we are not implementing "resolve" * Remove completion resolve data from tests * Better docs * Fix tests * Fix for 8.4 * Turn Haddock markup into Markdown * Add types to completion items * Make it work on 8.8 and 8.4 * Revert "Remove completion resolve data from tests" This reverts commit625d710f11
. * Revert "Remove JSON instances for completions, since we are not implementing "resolve"" This reverts commit12ff27dce7
. * Fix tests * Require higher version of regex-pcre-builtin * Replace Pandoc with direct conversion from Haddock to Markdown * Show kinds of type constructors too * A few fixed to Markdown conversion * Check optNewColonConvention * Fix build on 8.4 and 8.8 * More fixes for 8.4 and 8.8 * Check only the common part of the completion text * Make icons consistent with Outline * Test docs for completions * Make constructors return the corresponding CompletionItem + tests for that behavior * Make test work on 8.4
225 lines
6.0 KiB
Plaintext
225 lines
6.0 KiB
Plaintext
cabal-version: 1.20
|
|
build-type: Simple
|
|
category: Development
|
|
name: ghcide
|
|
version: 0.0.5
|
|
license: Apache-2.0
|
|
license-file: LICENSE
|
|
author: Digital Asset
|
|
maintainer: Digital Asset
|
|
copyright: Digital Asset 2018-2019
|
|
synopsis: The core of an IDE
|
|
description:
|
|
A library for building Haskell IDE's on top of the GHC API.
|
|
homepage: https://github.com/digital-asset/ghcide#readme
|
|
bug-reports: https://github.com/digital-asset/ghcide/issues
|
|
tested-with: GHC==8.6.5
|
|
extra-source-files: include/ghc-api-version.h README.md CHANGELOG.md
|
|
test/data/GotoHover.hs
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://github.com/digital-asset/ghcide.git
|
|
|
|
flag ghc-lib
|
|
description: build against ghc-lib instead of the ghc package
|
|
default: False
|
|
manual: True
|
|
|
|
library
|
|
default-language: Haskell2010
|
|
build-depends:
|
|
aeson,
|
|
async,
|
|
base == 4.*,
|
|
binary,
|
|
bytestring,
|
|
containers,
|
|
data-default,
|
|
deepseq,
|
|
directory,
|
|
extra,
|
|
fuzzy,
|
|
filepath,
|
|
haddock-library,
|
|
hashable,
|
|
haskell-lsp-types == 0.19.*,
|
|
haskell-lsp == 0.19.*,
|
|
mtl,
|
|
network-uri,
|
|
prettyprinter-ansi-terminal,
|
|
prettyprinter-ansi-terminal,
|
|
prettyprinter,
|
|
regex-tdfa >= 1.3.1.0,
|
|
rope-utf16-splay,
|
|
safe-exceptions,
|
|
shake >= 0.17.5,
|
|
sorted-list,
|
|
stm,
|
|
syb,
|
|
text,
|
|
time,
|
|
transformers,
|
|
unordered-containers,
|
|
utf8-string,
|
|
hslogger
|
|
if flag(ghc-lib)
|
|
build-depends:
|
|
ghc-lib >= 8.8,
|
|
ghc-lib-parser >= 8.8
|
|
cpp-options: -DGHC_LIB
|
|
else
|
|
build-depends:
|
|
ghc-boot-th,
|
|
ghc-boot,
|
|
ghc >= 8.4
|
|
if !os(windows)
|
|
build-depends:
|
|
unix
|
|
c-sources:
|
|
cbits/getmodtime.c
|
|
|
|
default-extensions:
|
|
BangPatterns
|
|
DeriveFunctor
|
|
DeriveGeneric
|
|
GeneralizedNewtypeDeriving
|
|
LambdaCase
|
|
NamedFieldPuns
|
|
OverloadedStrings
|
|
RecordWildCards
|
|
ScopedTypeVariables
|
|
StandaloneDeriving
|
|
TupleSections
|
|
TypeApplications
|
|
ViewPatterns
|
|
|
|
hs-source-dirs:
|
|
src
|
|
include-dirs:
|
|
include
|
|
exposed-modules:
|
|
Development.IDE.Core.Completions
|
|
Development.IDE.Core.CompletionsTypes
|
|
Development.IDE.Core.FileStore
|
|
Development.IDE.Core.OfInterest
|
|
Development.IDE.Core.PositionMapping
|
|
Development.IDE.Core.Rules
|
|
Development.IDE.Core.RuleTypes
|
|
Development.IDE.Core.Service
|
|
Development.IDE.Core.Shake
|
|
Development.IDE.GHC.Util
|
|
Development.IDE.Import.DependencyInformation
|
|
Development.IDE.LSP.LanguageServer
|
|
Development.IDE.LSP.Protocol
|
|
Development.IDE.LSP.Server
|
|
Development.IDE.Types.Diagnostics
|
|
Development.IDE.Types.Location
|
|
Development.IDE.Types.Logger
|
|
Development.IDE.Types.Options
|
|
other-modules:
|
|
Development.IDE.Core.Debouncer
|
|
Development.IDE.Core.Compile
|
|
Development.IDE.Core.Preprocessor
|
|
Development.IDE.GHC.Compat
|
|
Development.IDE.GHC.CPP
|
|
Development.IDE.GHC.Error
|
|
Development.IDE.GHC.Orphans
|
|
Development.IDE.GHC.Warnings
|
|
Development.IDE.Import.FindImports
|
|
Development.IDE.LSP.CodeAction
|
|
Development.IDE.LSP.Completions
|
|
Development.IDE.LSP.HoverDefinition
|
|
Development.IDE.LSP.Notifications
|
|
Development.IDE.LSP.Outline
|
|
Development.IDE.Spans.AtPoint
|
|
Development.IDE.Spans.Calculate
|
|
Development.IDE.Spans.Documentation
|
|
Development.IDE.Spans.Type
|
|
ghc-options: -Wall -Wno-name-shadowing
|
|
|
|
executable ghcide-test-preprocessor
|
|
default-language: Haskell2010
|
|
hs-source-dirs: test/preprocessor
|
|
ghc-options: -Wall
|
|
main-is: Main.hs
|
|
build-depends:
|
|
base == 4.*
|
|
|
|
executable ghcide
|
|
if flag(ghc-lib)
|
|
buildable: False
|
|
default-language: Haskell2010
|
|
hs-source-dirs: exe
|
|
ghc-options: -threaded -Wall -Wno-name-shadowing
|
|
main-is: Main.hs
|
|
build-depends:
|
|
hslogger,
|
|
base == 4.*,
|
|
containers,
|
|
data-default,
|
|
directory,
|
|
extra,
|
|
filepath,
|
|
ghc-paths,
|
|
ghc,
|
|
gitrev,
|
|
haskell-lsp,
|
|
hie-bios >= 0.3.2 && < 0.4,
|
|
ghcide,
|
|
optparse-applicative,
|
|
shake,
|
|
text
|
|
other-modules:
|
|
Arguments
|
|
Paths_ghcide
|
|
|
|
default-extensions:
|
|
RecordWildCards
|
|
TupleSections
|
|
ViewPatterns
|
|
|
|
test-suite ghcide-tests
|
|
if flag(ghc-lib)
|
|
buildable: False
|
|
type: exitcode-stdio-1.0
|
|
default-language: Haskell2010
|
|
build-tool-depends:
|
|
ghcide:ghcide,
|
|
ghcide:ghcide-test-preprocessor
|
|
build-depends:
|
|
aeson,
|
|
base,
|
|
bytestring,
|
|
containers,
|
|
directory,
|
|
extra,
|
|
filepath,
|
|
--------------------------------------------------------------
|
|
-- The MIN_GHC_API_VERSION macro relies on MIN_VERSION pragmas
|
|
-- which require depending on ghc. So the tests need to depend
|
|
-- on ghc if they need to use MIN_GHC_API_VERSION. Maybe a
|
|
-- better solution can be found, but this is a quick solution
|
|
-- which works for now.
|
|
ghc,
|
|
--------------------------------------------------------------
|
|
ghcide,
|
|
ghc-typelits-knownnat,
|
|
haskell-lsp-types,
|
|
lens,
|
|
lsp-test >= 0.8,
|
|
parser-combinators,
|
|
tasty,
|
|
tasty-hunit,
|
|
tasty-expected-failure,
|
|
text
|
|
hs-source-dirs: test/cabal test/exe test/src
|
|
include-dirs: include
|
|
ghc-options: -threaded -Wall -Wno-name-shadowing
|
|
main-is: Main.hs
|
|
other-modules:
|
|
Development.IDE.Test
|
|
Development.IDE.Test.Runfiles
|
|
default-extensions:
|
|
OverloadedStrings
|