From 16c67ff304d5f6b38a74873bf5465fdafc4ee623 Mon Sep 17 00:00:00 2001 From: alexwl Date: Tue, 26 Feb 2019 23:33:40 +0300 Subject: Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index de153b3..9f84f06 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ Reading and understanding code is an essential part of the software development * Find references (cross-package) ![References](https://haskell-code-explorer.mfix.io/references.png) +* Search for Haskell functions, data and type constructors by name (in the current package / in all indexed packages) + ![Search](https://haskell-code-explorer.mfix.io/search.png) + * Type of each expression
![Expression](https://haskell-code-explorer.mfix.io/expressions.png)
Select a piece of text to get the type of each Haskell expression inside the selection. @@ -135,4 +138,10 @@ Load multiple indexed packages and start the server: haskell-code-server --package PATH1 --package PATH2 --package PATH3 --port 8080 ``` +Load the indexed package and start the server, use Hoogle API (https://github.com/ndmitchell/hoogle/blob/3dbf68bfd701f942d3af2e6debb74a0a78cd392e/docs/API.md#json-api) to get documentation for functions and types defined in other packages (`haskell-code-server` makes requests to https://hoogle.haskell.org/): + +```bash +haskell-code-server --package PATH --port 8080 --use-hoogle-api +``` + Open [http://localhost:8080](http://localhost:8080) in a browser to explore source code of the package. -- cgit v1.2.3