Commit Graph

85 Commits

Author SHA1 Message Date
alexwl
2f1c2a4c87 Add stack-8.8.3.yaml (LTS 15.4) 2020-03-22 15:33:46 +03:00
alexwl
66cdcb759b Update jstree to 3.3.9 2020-02-16 13:37:08 +03:00
alexwl
571363affc Update stack-8.8.1.yaml 2019-11-29 13:10:09 +03:00
alexwl
dc023cee45 Make it compile with GHC-8.8.1 (Stackage nightly-2019-09-28) 2019-09-29 13:45:37 +03:00
alexwl
6c6d96288f Add check for .cabal file 2019-09-02 22:08:37 +03:00
alexwl
bc2859c64e Add stack.yaml.lock to .gitignore 2019-08-21 13:27:55 +03:00
alexwl
1d2b4bdec6 Fix 'unterminated #else' 2019-08-21 13:12:17 +03:00
Avi Dessauer
af41ab40e1 Delete trailing whitespace (#42) 2019-08-21 13:03:31 +03:00
Avi Dessauer
5295ac7f7f Bump 8.6.5 plans to lts-14 (#41) 2019-08-21 12:59:18 +03:00
alexwl
611368eb78 Fail immediately when a GHC mismatch is detected. Closes #40. 2019-08-03 19:59:18 +03:00
Shinya Yamaguchi
a8d0ab9c9a Migrate stack v2 (#39) 2019-07-17 14:28:04 +03:00
alexwl
3da88457b2 Refactor 'addHeaders' function 2019-06-09 17:18:38 +03:00
alexwl
ee22264676 Update README 2019-06-01 18:07:40 +03:00
alexwl
c89b2b3174 Update description of server options 2019-05-26 18:19:35 +03:00
alexwl
31267d352e Code cleanup: fix warnings 2019-05-17 18:43:42 +03:00
alexwl
fabedd76f0 Fix circleci config 2019-05-08 14:29:19 +03:00
alexwl
4e4947b478 Update circleci cache key 2019-05-08 14:22:11 +03:00
alexwl
660e3020f5 Add support for GHC 8.6.5 2019-05-08 13:36:33 +03:00
alexwl
4ad872ac71 Fix GHC version check 2019-04-28 13:24:31 +03:00
alexwl
59e31e75d5 Update README 2019-04-26 12:11:45 +03:00
alexwl
6954dbf99e Add an option to sort files by name/type 2019-04-24 21:41:50 +03:00
alexwl
6b647e6446 Remove unnecessary semicolon 2019-04-24 21:08:40 +03:00
alexwl
b2a4ec8ae8 Add CircleCI config 2019-04-11 22:27:26 +03:00
alexwl
508ddaf2da Fix identifier search URL after the package has changed 2019-04-04 15:29:43 +03:00
alexwl
74f92973b7 Update the bug report URL 2019-03-29 15:33:07 +03:00
alexwl
e645794af3 Add GHC version check 2019-03-27 23:26:22 +03:00
alexwl
72dcd0ac25 Update parsePackagesPath so that --package and --packages options can be specified independently 2019-03-26 17:07:04 +03:00
Ian Jeffries
3bff037c1f Allow specifying both --packages and --package. (#31)
This can be useful if you've stored the dependencies of your application in one directory, but have your application in another directory.
2019-03-26 16:45:25 +03:00
alexwl
08ec8a00a1 Add dependencies to install.hs 2019-03-24 17:43:12 +03:00
alexwl
5920320068 Remove dependency on Shake 2019-03-24 17:16:10 +03:00
alexwl
66fd80a8fb Fix typo 2019-03-24 16:56:27 +03:00
alexwl
e9b64c5661 Add stack-8.6.4.yaml 2019-03-24 16:51:27 +03:00
Ian Jeffries
e282ffeec9 Add script to install multiple versions at once. (#29)
Eg (given that my local bin path for the project is set to ./.bin in my stack.yaml):

$ ./install.hs
<lots out output>
$ ls .bin
haskell-code-indexer-8.0.2*  haskell-code-indexer-8.4.4*
haskell-code-indexer-8.2.2*  haskell-code-indexer-8.6.3*
haskell-code-indexer-8.4.3*  haskell-code-server*

Note that it works by installing and then moving the `haskell-code-indexer` executable in your project's bin to `haskell-code-indexer-X-Y-Z`. So if you already have a plain `haskell-code-indexer` executable before the run it will be deleted.

It uses plain IO instead of Shake because Shake runs actions in unpredictable order. One of the goals of the script is that it will install haskell-code-server and the latest haskell-code-indexer as soon as possible, so that it's useful even if you have to cancel the run for some reason. Shake was running the haskell-code-indexer command at the correct time, but then waiting to copy it to its -X-Y-Z final home until near the end of the run.

(Also this is really just a simple install script, we don't need another layer of caching from Shake for it.)
2019-03-24 16:47:48 +03:00
alexwl
a70857114d Update README 2019-03-23 02:19:15 +03:00
Ian Jeffries
b24d1456d0 Default --package to '.' (#27) 2019-03-23 02:04:01 +03:00
alexwl
db54d0594b Hide the left panel by default on small screens; reduce initial-scale 2019-03-23 01:58:05 +03:00
alexwl
cac568f016 Add support for GHC 8.6.4 2019-03-14 22:40:27 +03:00
alexwl
78f46be07c Fix search results: add a package name and a module name of an identifier that doesn't have exact location info 2019-03-08 17:21:00 +03:00
alexwl
5ce658d25d Fix 'go to definition' on the Packages page 2019-03-08 13:51:55 +03:00
alexwl
ccc5754312 Remove unused callback 2019-03-08 13:14:22 +03:00
alexwl
16c67ff304 Update README 2019-02-26 23:33:40 +03:00
alexwl
eddf2c825d Adds an option to use public Hoogle JSON API (3dbf68bfd7/docs/API.md (json-api)) to get documentation for not indexed packages. Closes #21. 2019-02-20 18:58:57 +03:00
alexwl
c831f86d25 Remove unused variables and functions 2019-02-20 12:48:48 +03:00
alexwl
d65f02107a Optimize the process of adding links to Haskell language extension docs 2019-02-14 00:54:28 +03:00
alexwl
e8ded03ec4 Add a switch between 'search in the current package' and 'search in all packages' on the package page 2019-02-13 23:44:05 +03:00
alexwl
0b17136d96 Fix search for '.' and '..' identifiers 2019-02-08 00:34:54 +03:00
alexwl
d6a64db1ce Add identifier search in all indexed packages 2019-02-06 21:42:29 +03:00
alexwl
b796d370c6 Add links to Haskell language extensions docs 2019-01-28 17:41:23 +03:00
alexwl
0f84e1f004 Optimize memory usage of haskell-code-server
This commit adds an option to create an on-disk key-value store that contains all the data from PackageInfo of each indexed package in a queriable form. The store can be used by haskell-code-server to respond to API requests. The main benefit of using the store, compared to deserializing and loading PackageInfo of each package into memory, is reduced memory usage (approximately 7 times for a set of Haskell packages).

The key-value store on disk consists of two files: 'index' and 'values'. 'index' is a small file that contains a map from strings to locations in a 'values' file. 'index' file should be deserialized and loaded into memory. 'values' is a large file that contains serialized Haskell data structures. 'values' file can be either read directly (without deserializing) or memory-mapped.
2019-01-23 17:18:29 +03:00
alexwl
2713b196d3 Add GHC command line options to the debug output 2019-01-17 13:36:16 +03:00