Skip to content

Commit

Permalink
Merge pull request #209 from georgefst/readme-haddock
Browse files Browse the repository at this point in the history
Mention docs on hover feature in README
  • Loading branch information
jneira authored Jul 23, 2020
2 parents 037e7fe + f8aa985 commit 4fb4998
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@ This is *very* early stage software.

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

- 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:

- For cabal:
- Add to your global config file (e.g. `~/.cabal/config`):
```
program-default-options
ghc-options: -haddock
```
- Or, for a single project, run `cabal configure --ghc-options=-haddock`

- For stack, add to global `$STACK_ROOT\config.yaml`, or project's `stack.yaml`:
```
ghc-options:
"$everything": -haddock
```

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).

- Many more (TBD)

## Installation
Expand Down

0 comments on commit 4fb4998

Please sign in to comment.