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
|
2020-02-04 18:15:03 +03:00
|
|
|
version: 0.1.0
|
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,
|
2019-12-19 17:00:39 +03:00
|
|
|
fuzzy,
|
2019-05-20 18:36:08 +03:00
|
|
|
filepath,
|
2020-01-28 22:20:38 +03:00
|
|
|
haddock-library >= 1.8,
|
2019-05-20 18:36:08 +03:00
|
|
|
hashable,
|
2020-02-05 12:14:13 +03:00
|
|
|
haskell-lsp-types == 0.20.*,
|
|
|
|
haskell-lsp == 0.20.*,
|
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-12-30 12:40:13 +03:00
|
|
|
regex-tdfa >= 1.3.1.0,
|
2019-06-14 02:12:34 +03:00
|
|
|
rope-utf16-splay,
|
2019-06-28 18:04:00 +03:00
|
|
|
safe-exceptions,
|
2020-02-03 15:26:16 +03:00
|
|
|
shake >= 0.18.4,
|
2019-06-14 02:12:34 +03:00
|
|
|
sorted-list,
|
2019-05-20 18:36:08 +03:00
|
|
|
stm,
|
|
|
|
syb,
|
|
|
|
text,
|
|
|
|
time,
|
|
|
|
transformers,
|
2020-02-11 12:09:48 +03:00
|
|
|
unordered-containers >= 0.2.10.0,
|
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:
|
2020-02-06 22:57:55 +03:00
|
|
|
Development.IDE.Core.Debouncer
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.Core.FileStore
|
2020-02-13 15:34:11 +03:00
|
|
|
Development.IDE.Core.IdeConfiguration
|
2019-06-24 14:46:51 +03:00
|
|
|
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
|
2020-01-26 16:26:09 +03:00
|
|
|
Development.IDE.GHC.Error
|
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
|
2020-01-27 18:30:54 +03:00
|
|
|
Development.IDE.Spans.Common
|
2019-07-03 16:37:13 +03:00
|
|
|
Development.IDE.Types.Diagnostics
|
|
|
|
Development.IDE.Types.Location
|
|
|
|
Development.IDE.Types.Logger
|
|
|
|
Development.IDE.Types.Options
|
2020-01-26 14:28:11 +03:00
|
|
|
Development.IDE.Plugin
|
2020-01-26 12:36:48 +03:00
|
|
|
Development.IDE.Plugin.Completions
|
|
|
|
Development.IDE.Plugin.CodeAction
|
2019-07-03 16:37:13 +03:00
|
|
|
other-modules:
|
|
|
|
Development.IDE.Core.Compile
|
2019-09-12 00:25:07 +03:00
|
|
|
Development.IDE.Core.Preprocessor
|
2020-01-21 11:05:58 +03:00
|
|
|
Development.IDE.Core.FileExists
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.GHC.Compat
|
2019-06-22 11:21:59 +03:00
|
|
|
Development.IDE.GHC.CPP
|
|
|
|
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-12-18 11:50:30 +03:00
|
|
|
Development.IDE.LSP.HoverDefinition
|
2019-06-25 18:13:17 +03:00
|
|
|
Development.IDE.LSP.Notifications
|
2019-12-31 12:31:55 +03:00
|
|
|
Development.IDE.LSP.Outline
|
2019-06-24 14:46:51 +03:00
|
|
|
Development.IDE.Spans.AtPoint
|
|
|
|
Development.IDE.Spans.Calculate
|
|
|
|
Development.IDE.Spans.Documentation
|
|
|
|
Development.IDE.Spans.Type
|
2020-02-18 11:22:17 +03:00
|
|
|
Development.IDE.Plugin.CodeAction.PositionIndexed
|
2020-03-09 15:22:46 +03:00
|
|
|
Development.IDE.Plugin.CodeAction.Rules
|
|
|
|
Development.IDE.Plugin.CodeAction.RuleTypes
|
2020-01-26 12:36:48 +03:00
|
|
|
Development.IDE.Plugin.Completions.Logic
|
|
|
|
Development.IDE.Plugin.Completions.Types
|
2019-09-17 09:50:20 +03:00
|
|
|
ghc-options: -Wall -Wno-name-shadowing
|
2019-05-20 18:36:08 +03:00
|
|
|
|
2019-12-19 14:06:03 +03:00
|
|
|
executable ghcide-test-preprocessor
|
|
|
|
default-language: Haskell2010
|
|
|
|
hs-source-dirs: test/preprocessor
|
2020-02-11 12:09:48 +03:00
|
|
|
ghc-options: -Wall -Wno-name-shadowing
|
2019-12-19 14:06:03 +03:00
|
|
|
main-is: Main.hs
|
|
|
|
build-depends:
|
|
|
|
base == 4.*
|
|
|
|
|
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
|
2020-01-17 18:27:39 +03:00
|
|
|
ghc-options:
|
|
|
|
-threaded
|
|
|
|
-Wall
|
|
|
|
-Wno-name-shadowing
|
|
|
|
-- allow user RTS overrides
|
|
|
|
-rtsopts
|
|
|
|
-- disable idle GC
|
|
|
|
-- disable parallel GC
|
|
|
|
-- increase nursery size
|
Fix -with-rtsopts flags (#333)
Before this change:
[nix-shell:~/scratch/ghcide]$ /home/pepe/scratch/ghcide/dist-newstyle/build/x86_64-linux/ghc-8.8.1/ghcide-0.0.6/x/ghcide/build/ghcide/ghcide +RTS --info
[("GHC RTS", "YES")
,("GHC version", "8.8.1")
,("RTS way", "rts_thr_p")
,("Build platform", "x86_64-unknown-linux")
,("Build architecture", "x86_64")
,("Build OS", "linux")
,("Build vendor", "unknown")
,("Host platform", "x86_64-unknown-linux")
,("Host architecture", "x86_64")
,("Host OS", "linux")
,("Host vendor", "unknown")
,("Target platform", "x86_64-unknown-linux")
,("Target architecture", "x86_64")
,("Target OS", "linux")
,("Target vendor", "unknown")
,("Word size", "64")
,("Compiler unregisterised", "NO")
,("Tables next to code", "YES")
,("Flag -with-rtsopts", "-A128M")
]
After this change:
[nix-shell:~/scratch/ghcide]$ /home/pepe/scratch/ghcide/dist-newstyle/build/x86_64-linux/ghc-8.8.1/ghcide-0.0.6/x/ghcide/build/ghcide/ghcide +RTS --info
[("GHC RTS", "YES")
,("GHC version", "8.8.1")
,("RTS way", "rts_thr")
,("Build platform", "x86_64-unknown-linux")
,("Build architecture", "x86_64")
,("Build OS", "linux")
,("Build vendor", "unknown")
,("Host platform", "x86_64-unknown-linux")
,("Host architecture", "x86_64")
,("Host OS", "linux")
,("Host vendor", "unknown")
,("Target platform", "x86_64-unknown-linux")
,("Target architecture", "x86_64")
,("Target OS", "linux")
,("Target vendor", "unknown")
,("Word size", "64")
,("Compiler unregisterised", "NO")
,("Tables next to code", "YES")
,("Flag -with-rtsopts", "-I0 -qg -A128M")
]
2020-01-19 19:06:12 +03:00
|
|
|
"-with-rtsopts=-I0 -qg -A128M"
|
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,
|
2020-03-04 19:31:24 +03:00
|
|
|
aeson,
|
2019-05-20 18:36:08 +03:00
|
|
|
base == 4.*,
|
2020-02-17 12:33:33 +03:00
|
|
|
binary,
|
2020-02-20 14:32:20 +03:00
|
|
|
base16-bytestring >=0.1.1 && <0.2,
|
|
|
|
bytestring,
|
2019-05-20 18:36:08 +03:00
|
|
|
containers,
|
2020-02-20 14:32:20 +03:00
|
|
|
cryptohash-sha1 >=0.11.100 && <0.12,
|
2019-06-26 11:04:10 +03:00
|
|
|
data-default,
|
2020-02-17 12:33:33 +03:00
|
|
|
deepseq,
|
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,
|
2020-01-06 11:13:14 +03:00
|
|
|
gitrev,
|
2020-02-17 12:33:33 +03:00
|
|
|
hashable,
|
2019-06-14 02:12:34 +03:00
|
|
|
haskell-lsp,
|
2020-03-04 19:31:24 +03:00
|
|
|
haskell-lsp-types,
|
2020-02-04 13:09:50 +03:00
|
|
|
hie-bios >= 0.4.0 && < 0.5,
|
2019-09-09 16:55:16 +03:00
|
|
|
ghcide,
|
2019-06-28 18:04:00 +03:00
|
|
|
optparse-applicative,
|
|
|
|
shake,
|
2020-02-11 12:09:48 +03:00
|
|
|
text,
|
|
|
|
unordered-containers
|
2019-06-26 19:07:08 +03:00
|
|
|
other-modules:
|
|
|
|
Arguments
|
2019-09-24 01:09:20 +03:00
|
|
|
Paths_ghcide
|
2020-03-04 19:31:24 +03:00
|
|
|
Rules
|
2020-02-26 11:16:17 +03:00
|
|
|
RuleTypes
|
2019-05-20 18:36:08 +03:00
|
|
|
|
|
|
|
default-extensions:
|
2020-03-04 19:31:24 +03:00
|
|
|
BangPatterns
|
|
|
|
DeriveFunctor
|
2020-02-17 12:33:33 +03:00
|
|
|
DeriveGeneric
|
2020-03-04 19:31:24 +03:00
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
LambdaCase
|
|
|
|
NamedFieldPuns
|
|
|
|
OverloadedStrings
|
2019-05-20 18:36:08 +03:00
|
|
|
RecordWildCards
|
2020-03-04 19:31:24 +03:00
|
|
|
ScopedTypeVariables
|
|
|
|
StandaloneDeriving
|
2019-06-28 18:04:00 +03:00
|
|
|
TupleSections
|
2020-03-04 19:31:24 +03:00
|
|
|
TypeApplications
|
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-12-19 14:06:03 +03:00
|
|
|
ghcide:ghcide,
|
|
|
|
ghcide:ghcide-test-preprocessor
|
2019-07-25 15:50:07 +03:00
|
|
|
build-depends:
|
2019-12-19 17:00:39 +03:00
|
|
|
aeson,
|
2019-07-25 15:50:07 +03:00
|
|
|
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-11-15 11:27:28 +03:00
|
|
|
ghc-typelits-knownnat,
|
2020-01-27 18:30:54 +03:00
|
|
|
haddock-library,
|
2020-01-28 12:31:28 +03:00
|
|
|
haskell-lsp,
|
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,
|
2020-01-28 12:31:28 +03:00
|
|
|
QuickCheck,
|
|
|
|
quickcheck-instances,
|
|
|
|
rope-utf16-splay,
|
2019-07-25 15:50:07 +03:00
|
|
|
tasty,
|
2019-09-29 13:03:16 +03:00
|
|
|
tasty-expected-failure,
|
2020-01-28 12:31:28 +03:00
|
|
|
tasty-hunit,
|
|
|
|
tasty-quickcheck,
|
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:
|
2020-01-21 11:05:58 +03:00
|
|
|
BangPatterns
|
|
|
|
DeriveFunctor
|
|
|
|
DeriveGeneric
|
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
LambdaCase
|
|
|
|
NamedFieldPuns
|
2019-07-26 15:08:51 +03:00
|
|
|
OverloadedStrings
|
2020-01-21 11:05:58 +03:00
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
|
|
|
StandaloneDeriving
|
|
|
|
TupleSections
|
|
|
|
TypeApplications
|
|
|
|
ViewPatterns
|