Skip to content

Commit 4fb4998

Browse files
authored
Merge pull request #209 from georgefst/readme-haddock
Mention docs on hover feature in README
2 parents 037e7fe + f8aa985 commit 4fb4998

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,24 @@ This is *very* early stage software.
5353

5454
![Eval](https://i.imgur.com/bh992sT.gif)
5555

56+
- 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:
57+
58+
- For cabal:
59+
- Add to your global config file (e.g. `~/.cabal/config`):
60+
```
61+
program-default-options
62+
ghc-options: -haddock
63+
```
64+
- Or, for a single project, run `cabal configure --ghc-options=-haddock`
65+
66+
- For stack, add to global `$STACK_ROOT\config.yaml`, or project's `stack.yaml`:
67+
```
68+
ghc-options:
69+
"$everything": -haddock
70+
```
71+
72+
This will cause compilation errors if a dependency contains invalid Haddock markup, though in a future version of GHC (hopefully 8.12), [these will be demoted to warnings](https://gitlab.haskell.org/ghc/ghc/-/merge_requests/2377).
73+
5674
- Many more (TBD)
5775
5876
## Installation

0 commit comments

Comments
 (0)