2019-09-07 18:06:25 +03:00
|
|
|
cabal-version: 1.20
|
2019-05-20 18:36:08 +03:00
|
|
|
build-type: Simple
|
2019-09-07 18:06:25 +03:00
|
|
|
category: Development
|
2019-09-09 16:55:16 +03:00
|
|
|
name: ghcide
|
2019-10-21 00:57:34 +03:00
|
|
|
version: 0.0.4
|
2019-09-07 18:06:25 +03:00
|
|
|
license: Apache-2.0
|
|
|
|
license-file: LICENSE
|
2019-05-20 18:36:08 +03:00
|
|
|
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.
|
2019-09-11 15:16:43 +03:00
|
|
|
homepage: https://github.com/digital-asset/ghcide#readme
|
|
|
|
bug-reports: https://github.com/digital-asset/ghcide/issues
|
2019-05-20 18:36:08 +03:00
|
|
|
tested-with: GHC==8.6.5
|
2019-09-23 15:54:06 +03:00
|
|
|
extra-source-files: include/ghc-api-version.h README.md CHANGELOG.md
|
2019-10-22 17:41:13 +03:00
|
|
|
test/data/GotoHover.hs
|
2019-05-20 18:36:08 +03:00
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: git
|
2019-09-11 15:16:43 +03:00
|
|
|
location: https://github.com/digital-asset/ghcide.git
|
2019-05-20 18:36:08 +03:00
|
|
|
|
2019-09-16 12:31:09 +03:00
|
|
|
flag ghc-lib
|
|
|
|
description: build against ghc-lib instead of the ghc package
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2019-05-20 18:36:08 +03:00
|
|
|
library
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends:
|
|
|
|
aeson,
|
2019-06-14 15:26:25 +03:00
|
|
|
async,
|
2019-05-20 18:36:08 +03:00
|
|
|
base == 4.*,
|
|
|
|
binary,
|
|
|
|
bytestring,
|
|
|
|
containers,
|
2019-06-14 15:26:25 +03:00
|
|
|
data-default,
|
2019-05-20 18:36:08 +03:00
|
|
|
deepseq,
|
|
|
|
directory,
|
|
|
|
extra,
|
|
|
|
filepath,
|
|
|
|
hashable,
|
2019-10-18 21:58:26 +03:00
|
|
|
haskell-lsp-types >= 0.17,
|
|
|
|
haskell-lsp >= 0.17,
|
2019-05-20 18:36:08 +03:00
|
|
|
mtl,
|
2019-06-14 15:26:25 +03:00
|
|
|
network-uri,
|
2019-06-24 10:00:42 +03:00
|
|
|
prettyprinter-ansi-terminal,
|
2019-06-28 18:04:00 +03:00
|
|
|
prettyprinter-ansi-terminal,
|
|
|
|
prettyprinter,
|
2019-06-14 02:12:34 +03:00
|
|
|
rope-utf16-splay,
|
2019-06-28 18:04:00 +03:00
|
|
|
safe-exceptions,
|
2019-09-07 17:23:14 +03:00
|
|
|
shake >= 0.17.5,
|
2019-06-14 02:12:34 +03:00
|
|
|
sorted-list,
|
2019-05-20 18:36:08 +03:00
|
|
|
stm,
|
|
|
|
syb,
|
|
|
|
text,
|
|
|
|
time,
|
|
|
|
transformers,
|
|
|
|
unordered-containers,
|
2019-10-17 12:11:52 +03:00
|
|
|
utf8-string,
|
|
|
|
hslogger
|
2019-09-16 12:31:09 +03:00
|
|
|
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
|
2019-07-31 12:24:37 +03:00
|
|
|
if !os(windows)
|
|
|
|
build-depends:
|
|
|
|
unix
|
|
|
|
c-sources:
|
|
|
|
cbits/getmodtime.c
|
2019-05-20 18:36:08 +03:00
|
|
|
|
|
|
|
default-extensions:
|
|
|
|
BangPatterns
|
2019-07-25 15:50:07 +03:00
|
|
|
DeriveFunctor
|
2019-05-20 18:36:08 +03:00
|
|
|
DeriveGeneric
|
2019-06-28 18:04:00 +03:00
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
LambdaCase
|
|
|
|
NamedFieldPuns
|
2019-07-25 15:50:07 +03:00
|
|
|
OverloadedStrings
|
2019-05-20 18:36:08 +03:00
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
2019-06-28 18:04:00 +03:00
|
|
|
StandaloneDeriving
|
2019-05-20 18:36:08 +03:00
|
|
|
TupleSections
|
|
|
|
TypeApplications
|
|
|
|
ViewPatterns
|
|
|
|
|
|
|
|
hs-source-dirs:
|
|
|
|
src
|
2019-09-16 12:31:09 +03:00
|
|
|
include-dirs:
|
|
|
|
include
|
2019-05-20 18:36:08 +03:00
|
|
|
exposed-modules:
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.Core.FileStore
|
|
|
|
Development.IDE.Core.OfInterest
|
2019-07-25 15:50:07 +03:00
|
|
|
Development.IDE.Core.PositionMapping
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.Core.Rules
|
|
|
|
Development.IDE.Core.RuleTypes
|
|
|
|
Development.IDE.Core.Service
|
|
|
|
Development.IDE.Core.Shake
|
2019-07-03 16:37:13 +03:00
|
|
|
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:
|
2019-07-03 22:05:54 +03:00
|
|
|
Development.IDE.Core.Debouncer
|
2019-07-03 16:37:13 +03:00
|
|
|
Development.IDE.Core.Compile
|
2019-09-12 00:25:07 +03:00
|
|
|
Development.IDE.Core.Preprocessor
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.GHC.Compat
|
2019-06-22 11:21:59 +03:00
|
|
|
Development.IDE.GHC.CPP
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.GHC.Error
|
2019-06-22 11:21:59 +03:00
|
|
|
Development.IDE.GHC.Orphans
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.GHC.Warnings
|
2019-06-22 11:21:59 +03:00
|
|
|
Development.IDE.Import.FindImports
|
2019-06-28 20:37:08 +03:00
|
|
|
Development.IDE.LSP.CodeAction
|
2019-06-14 15:26:25 +03:00
|
|
|
Development.IDE.LSP.Definition
|
|
|
|
Development.IDE.LSP.Hover
|
2019-06-25 18:13:17 +03:00
|
|
|
Development.IDE.LSP.Notifications
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.Spans.AtPoint
|
|
|
|
Development.IDE.Spans.Calculate
|
|
|
|
Development.IDE.Spans.Documentation
|
|
|
|
Development.IDE.Spans.Type
|
2019-09-17 09:50:20 +03:00
|
|
|
ghc-options: -Wall -Wno-name-shadowing
|
2019-05-20 18:36:08 +03:00
|
|
|
|
2019-09-09 16:55:16 +03:00
|
|
|
executable ghcide
|
2019-09-16 12:31:09 +03:00
|
|
|
if flag(ghc-lib)
|
|
|
|
buildable: False
|
2019-05-20 18:36:08 +03:00
|
|
|
default-language: Haskell2010
|
2019-06-26 19:07:08 +03:00
|
|
|
hs-source-dirs: exe
|
2019-09-17 09:50:20 +03:00
|
|
|
ghc-options: -threaded -Wall -Wno-name-shadowing
|
2019-06-26 19:07:08 +03:00
|
|
|
main-is: Main.hs
|
2019-05-20 18:36:08 +03:00
|
|
|
build-depends:
|
2019-10-17 12:11:52 +03:00
|
|
|
hslogger,
|
2019-05-20 18:36:08 +03:00
|
|
|
base == 4.*,
|
|
|
|
containers,
|
2019-06-26 11:04:10 +03:00
|
|
|
data-default,
|
2019-06-28 18:04:00 +03:00
|
|
|
directory,
|
2019-05-20 18:36:08 +03:00
|
|
|
extra,
|
2019-06-26 19:07:08 +03:00
|
|
|
filepath,
|
2019-06-28 18:04:00 +03:00
|
|
|
ghc-paths,
|
|
|
|
ghc,
|
2019-06-14 02:12:34 +03:00
|
|
|
haskell-lsp,
|
2019-09-24 21:41:52 +03:00
|
|
|
hie-bios >= 0.2 && < 0.3,
|
2019-09-09 16:55:16 +03:00
|
|
|
ghcide,
|
2019-06-28 18:04:00 +03:00
|
|
|
optparse-applicative,
|
|
|
|
shake,
|
|
|
|
text
|
2019-06-26 19:07:08 +03:00
|
|
|
other-modules:
|
|
|
|
Arguments
|
2019-09-24 01:09:20 +03:00
|
|
|
Paths_ghcide
|
2019-05-20 18:36:08 +03:00
|
|
|
|
|
|
|
default-extensions:
|
|
|
|
RecordWildCards
|
2019-06-28 18:04:00 +03:00
|
|
|
TupleSections
|
2019-06-14 02:12:34 +03:00
|
|
|
ViewPatterns
|
2019-07-25 15:50:07 +03:00
|
|
|
|
2019-09-09 16:55:16 +03:00
|
|
|
test-suite ghcide-tests
|
2019-09-16 12:31:09 +03:00
|
|
|
if flag(ghc-lib)
|
|
|
|
buildable: False
|
2019-07-25 15:50:07 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-tool-depends:
|
2019-09-09 16:55:16 +03:00
|
|
|
ghcide:ghcide
|
2019-07-25 15:50:07 +03:00
|
|
|
build-depends:
|
|
|
|
base,
|
2019-10-22 17:41:13 +03:00
|
|
|
bytestring,
|
2019-07-25 15:50:07 +03:00
|
|
|
containers,
|
2019-09-25 14:01:41 +03:00
|
|
|
directory,
|
2019-07-25 15:50:07 +03:00
|
|
|
extra,
|
|
|
|
filepath,
|
2019-09-16 17:43:50 +03:00
|
|
|
--------------------------------------------------------------
|
|
|
|
-- 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,
|
|
|
|
--------------------------------------------------------------
|
2019-10-22 17:41:13 +03:00
|
|
|
ghcide,
|
2019-07-25 15:50:07 +03:00
|
|
|
haskell-lsp-types,
|
|
|
|
lens,
|
2019-10-18 21:58:26 +03:00
|
|
|
lsp-test >= 0.8,
|
2019-07-25 15:50:07 +03:00
|
|
|
parser-combinators,
|
|
|
|
tasty,
|
|
|
|
tasty-hunit,
|
2019-09-29 13:03:16 +03:00
|
|
|
tasty-expected-failure,
|
2019-07-25 15:50:07 +03:00
|
|
|
text
|
|
|
|
hs-source-dirs: test/cabal test/exe test/src
|
2019-09-16 17:43:50 +03:00
|
|
|
include-dirs: include
|
2019-09-17 09:50:20 +03:00
|
|
|
ghc-options: -threaded -Wall -Wno-name-shadowing
|
2019-07-25 15:50:07 +03:00
|
|
|
main-is: Main.hs
|
|
|
|
other-modules:
|
|
|
|
Development.IDE.Test
|
|
|
|
Development.IDE.Test.Runfiles
|
2019-07-26 15:08:51 +03:00
|
|
|
default-extensions:
|
|
|
|
OverloadedStrings
|