Commit Graph

217 Commits

Author SHA1 Message Date
Olle Fredriksson
8d0e4a2ca0 Add support for removing redundant qualified imports 2019-09-12 22:51:46 +02:00
Olle Fredriksson
fdefb6bc6d Add a test for removing an unused module 2019-09-12 22:51:10 +02:00
Moritz Kiefer
14b0b16aec
Merge pull request #27 from hsenag/type-wildcards
Code action for type wildcards
2019-09-12 15:58:51 +02:00
Ganesh Sittampalam
de35c8fe99 Code action to fill in GHC's suggested type signature for _ 2019-09-12 10:08:01 +01:00
Moritz Kiefer
f4553757dd
Merge pull request #39 from ollef/master
Handle PackageImporting "this"
2019-09-12 10:03:26 +02:00
Olle Fredriksson
2312cba385 Add PackageImport test 2019-09-12 09:39:13 +02:00
Moritz Kiefer
10e5f154d6
Merge pull request #40 from timjb/rename-action
Add code action for fixing misspelled variable names
2019-09-12 09:16:05 +02:00
Tim J. Baumann
eb818353fc Add code action for fixing misspelled variable names
The suggestions are extracted from GHC's error messages.

To make parsing these error messages easier, we set the flag
useUnicode=True, which makes GHC always use “smart quotes”.
2019-09-11 22:48:09 +02:00
Olle Fredriksson
d859af2102 Handle PackageImporting "this"
"this" means that we only look for the module in the current package, so
we only look for a file in that case.

Fixes https://github.com/digital-asset/ghcide/issues/37.
2019-09-11 21:02:18 +02:00
Robin Krom
f66c886217
Merge pull request #36 from digital-asset/vim_coc_instructions
Added setup instructions for vim/coc to README
2019-09-11 16:04:47 +02:00
Robin Krom
3589042a3f Added setup instructions for vim/coc to README
Instructions to setup https://github.com/neoclide/coc.nvim and neovim
together with ghcide.
2019-09-11 15:45:15 +02:00
Moritz Kiefer
1760ef14c3
Merge pull request #35 from digital-asset/cabal-metadata
Update cabal file metadata to point to the new repo
2019-09-11 15:06:04 +02:00
Moritz Kiefer
2505054ca8 Remove stack.yaml.lock again since it interacts badly with multiple GHCs 2019-09-11 14:37:19 +02:00
Moritz Kiefer
351d9d01ad Update cabal file metadata to point to the new repo 2019-09-11 14:16:48 +02:00
Moritz Kiefer
c14b5d1d48
Merge pull request #29 from ndmitchell/patch-1
#26, test GHC 8.4
2019-09-11 13:59:38 +02:00
Moritz Kiefer
8f915897cf Move GHC 8.4 to a separate job 2019-09-11 13:32:08 +02:00
Moritz Kiefer
44b11667d8
Merge pull request #31 from CodiePP/lhs-unlit-preprocessing
added unlit stage for literate Haskell source files
2019-09-11 13:19:38 +02:00
Moritz Kiefer
5821516f93
Merge pull request #32 from CodiePP/adapt-readme
building extension in correct path
2019-09-11 13:19:24 +02:00
Alexander Diemand
d5c44cca50
building extension in correct path
Signed-off-by: Alexander Diemand <codieplusplus@apax.net>
2019-09-11 12:09:49 +02:00
Alexander Diemand
67b4d40af4
added unlit stage for literate Haskell source files
Signed-off-by: Alexander Diemand <codieplusplus@apax.net>
2019-09-11 11:56:26 +02:00
Neil Mitchell
8fca00d06a
#26, test GHC 8.4 2019-09-11 10:25:41 +01:00
Moritz Kiefer
02221d93d7
Merge pull request #24 from ndmitchell/multienv
Add multi environment support
2019-09-11 11:08:33 +02:00
Neil Mitchell
fc939e7dfb Add a comment that the test needs to change for multi environment 2019-09-11 09:34:16 +01:00
Moritz Kiefer
63432ce848
Merge pull request #22 from ndmitchell/add-dot-ghci
Add a .ghci file
2019-09-11 10:30:14 +02:00
Moritz Kiefer
9140d7d99c
Merge pull request #21 from ndmitchell/less-hiding
Don't hide Shake functions we don't conflict with
2019-09-11 10:30:07 +02:00
Moritz Kiefer
ccec29cbd3
Merge pull request #20 from ndmitchell/haskell-lsp-bound
Add a lower bound on haskell-lsp (we are incompatible with 0.14)
2019-09-11 10:29:59 +02:00
Neil Mitchell
405d62b064 Add multi environment support 2019-09-11 09:13:18 +01:00
Neil Mitchell
efaeb60e9f Add a .ghci file, was removed in the renaming to ghcide 2019-09-11 09:05:15 +01:00
Neil Mitchell
7d9d78e4f5 Even more hidings were redundant 2019-09-11 09:01:09 +01:00
Neil Mitchell
5ba40a44d9 Don't hide newCache, since we no longer conflict with it 2019-09-11 08:55:59 +01:00
Neil Mitchell
82d9d6248d
Add a lower bound on haskell-lsp (we are incompatilbe with 0.14) 2019-09-11 08:53:32 +01:00
Moritz Kiefer
31e000e8a1
Merge pull request #5 from digital-asset/remove-bazel
Remove Bazel config
2019-09-10 17:14:43 +02:00
Moritz Kiefer
de8148b994 Remove Bazel config 2019-09-10 17:05:25 +02:00
Moritz Kiefer
63247ab0f4
Merge pull request #4 from digital-asset/remove-ghcide-daml
Remove ghcide-daml script
2019-09-10 17:03:34 +02:00
Moritz Kiefer
81dd71f47f
Merge pull request #3 from digital-asset/hlint
Enable HLint
2019-09-10 17:03:11 +02:00
Moritz Kiefer
428216c42f Remove ghcide-daml script
That doesn’t make sense in the context of this repository (I’ll make
sure we keep it around in the daml repo).
2019-09-10 16:50:10 +02:00
Moritz Kiefer
b8cdaafc28
Merge pull request #2 from digital-asset/update-readme
Update README
2019-09-10 16:48:35 +02:00
Moritz Kiefer
da5ab701da Enable HLint 2019-09-10 16:31:43 +02:00
Moritz Kiefer
a1e8bea46d Update README 2019-09-10 16:21:10 +02:00
Gary Verhaegen
1c25462201
Merge pull request #1 from digital-asset/add-ci-after-move
add CI config after extraction
2019-09-10 16:14:35 +02:00
Gary Verhaegen
f9af40e86b add CI config after extraction
after extracting the compiler/ghcide folder from the
https://github.com/digital-asset/daml repo, we need to set up a new CI
configuration for the new repo; this is mostly taking over the existing
stack job from the daml repo.
2019-09-10 15:40:52 +02:00
Ganesh Sittampalam
87c68e1029 ghcide: support hs-boot files (#2827) 2019-09-10 15:01:33 +02:00
Ganesh Sittampalam
61760936f9 ghcide: make tests fail on unexpected diagnostic messages (#2813) (#2823)
This has the downside of relying on a timeout, experimentally tuned
to be 0.5s, as we have no other way of knowing when the server has
finished sending us messages.
2019-09-10 15:01:33 +02:00
Moritz Kiefer
5da86c3e44 Rename hie-core to ghcide (#2820)
* Rename hie-core to ghcide

The name `hie-core` has caused a lot of confusion as to how we relate
to haskell-ide-engine so changing it should hopefully help with that.
I also think that ghcide is still a good name once we hopefully
integrate with haskell-ide-engine more closely.

The name ghcide seems to have a reasonable amount of support on
Twitter https://twitter.com/ndm_haskell/status/1170681262987710464
which is of course the only good way to come up with names.

* Add a readme that points people to the new directory.

* Fix bogus replacements

* Use a proper link

* links are hard
2019-09-10 15:01:29 +02:00
Neil Mitchell
5ac4265e9b hie-core: Ignore packages that conflict with ghc in the hie.yaml (#2819) 2019-09-10 14:52:17 +02:00
jacg
7e31d3e560 hie-core: Remove code pretty printing from diagnostic output (#2810)
In moving from v. 0.15 to 0.16, haskell-lsp changed the type of the
value which ended up being passed to `pretty` from `Maybe Text` to
`Maybe LSP.NumberOrString`, thereby breaking the line of code which is
removed in this commit.

After discussion with @ndmitchell, it was observed that this code was
never useful, and fixing it was not worth the trouble.
2019-09-10 14:52:17 +02:00
Ganesh Sittampalam
52b745ce31 A couple of improvements to the experience developing hie-core itself (#2812)
* Put information about the compiler pass in the _source field of Diagnostic

It's useful when looking at the hie-core command-line output to see where
a problem is coming from.

* include test code in hie-core's own cradle
2019-09-10 14:52:17 +02:00
Domen Kožar
42461d1c2a README: add notes for Nix installation (#2805) 2019-09-10 14:52:17 +02:00
Tobias Pflug
bbb1ffc543 Add languageclient-neovim info to README (#2806) 2019-09-10 14:52:17 +02:00
Moritz Kiefer
dfebb9c7a6 Fix hie-core cabal file metadata (#2804) 2019-09-10 14:52:17 +02:00