|
1 | 1 | # Features
|
2 | 2 |
|
3 |
| -- Code evaluation codelens ([Tutorial](https://github.com/haskell/haskell-language-server/tree/master/plugins/hls-eval-plugin/README.md)): |
| 3 | +- Warning and error diagnostics from GHC |
| 4 | +- Type information and documentation on hover, [including your own comments](./configuration.md#how-to-show-local-documentation-on-hover). |
| 5 | +- Jump to definition: [for now only for local code definitions](https://github.com/haskell/haskell-language-server/issues/708) |
| 6 | +- Document symbols |
| 7 | +- Highlight references in document |
| 8 | +- Code completion |
| 9 | +- Formatting via Brittany, Floskell, Fourmolu, Ormolu or Stylish Haskell |
| 10 | +- Code evaluation (Haskell Language Server), see ([Tutorial](https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-eval-plugin/README.md)) |
4 | 11 |
|
5 |
| -  |
| 12 | +  |
6 | 13 |
|
7 |
| -- Type information and documentation on hover. Note that currently, in order for docs to be displayed for dependencies, they must have been built with GHC's `-haddock` flag: |
| 14 | +- Integration with [retrie](https://hackage.haskell.org/package/retrie) |
8 | 15 |
|
9 |
| - - For cabal: |
10 |
| - - Add to your global config file (e.g. `~/.cabal/config`): |
| 16 | +  |
11 | 17 |
|
12 |
| - ``` |
13 |
| - program-default-options |
14 |
| - ghc-options: -haddock |
15 |
| - ``` |
| 18 | +- Code lenses for explicit import lists |
16 | 19 |
|
17 |
| - - Or, for a single project, run `cabal configure --ghc-options=-haddock` |
| 20 | +  |
18 | 21 |
|
19 |
| - - For stack, add to global `$STACK_ROOT\config.yaml`, or project's `stack.yaml`: |
| 22 | +- Generate functions from type signatures, and intelligently complete holes using [Wingman (tactics)](https://github.com/haskell/haskell-language-server/tree/master/plugins/hls-tactics-plugin) |
20 | 23 |
|
21 |
| - ``` |
22 |
| - ghc-options: |
23 |
| - "$everything": -haddock |
24 |
| - ``` |
| 24 | +  |
25 | 25 |
|
26 |
| - This will cause compilation errors if a dependency contains invalid Haddock markup, though from GHC version 9.0, [these will be demoted to warnings](https://gitlab.haskell.org/ghc/ghc/-/merge_requests/2377). |
| 26 | +- Integration with [hlint](https://github.com/ndmitchell/hlint) to show diagnostics and apply hints via [apply-refact](https://github.com/mpickering/apply-refact) |
27 | 27 |
|
28 |
| - - Integration with [retrie](https://hackage.haskell.org/package/retrie) |
| 28 | +  |
29 | 29 |
|
30 |
| -  |
| 30 | +- Module name suggestions for insertion or correction |
31 | 31 |
|
32 |
| - - Code lenses for explicit import lists |
| 32 | +  |
33 | 33 |
|
34 |
| -  |
| 34 | +- Call hierarchy support |
35 | 35 |
|
36 |
| - - Many more (TBD) |
| 36 | +  |
0 commit comments