Commit Graph

4 Commits

Author SHA1 Message Date
Pepe Iborra
959db7b10b
Extract the benchmarking Shake rules to a standalone Cabal package (#941)
* [bench-hist] break down in rule functions

* Extract the benchmarking Shake rules to a shake-bench package

There's some room for reusing the rules used in the historic benchmarking suite
in other projects. This change makes that a bit easier and improves the
documentation and code structure.

The new structure is:
- lib:shake-bench - a Cabal library with functions to generate Shake rules
- ghcide:bench:benchHist - the ghcide instantiation of the above Shake rules

That's not to say that shake-bench is completely decoupled from ghcide -
there are still plenty of assumptions on how the benchmarks are organized, their
outputs, etc. But with a little bit of effort, it should be easy to make
these rules more reusable

* Fix nix build

* Fix license

* hlints and redundant imports

* more hlints

* Exclude shake-bench from the stack build
2020-12-07 15:03:15 +00:00
Pepe Iborra
cdfc4b6e06
Avoid excessive retypechecking of TH codebases (#673)
* Hi file stability

* fix missing early cutoff in GetModIface

* tests for TH reloading

* Do not run hlint on test/data

* hlints

* Fix legacy code path

* Update test/exe/Main.hs

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2020-07-01 09:19:38 +02:00
Neil Mitchell
53e6ea9aa9
Enable compatibility with the next version of HLint (#434)
* Use Just True == in preference to fromMaybe True or similar

* Use trimStart instead of dropWhile isSpace

* Whitespace only

* Remove a redundant import

* Enable HLint hints suggesting the extra library
2020-02-17 10:50:30 +01:00
Moritz Kiefer
da5ab701da Enable HLint 2019-09-10 16:31:43 +02:00