aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix some Hyperlinker test suite falloutAlec Theriault2019-02-021-21/+44
| | | | | | | | | | | * Amend `ParserSpec` to match new Hyperlinker API - pass in compiler info - strip out null tokens * Make `hypsrc-test` pass reliably - strip out `local-*` ids - strip out `line-*` ids from the `ClangCppBug` test - re-accept output
* Patch flaky parser test (#720)Alec Theriault2018-02-011-11/+22
| | | | | | | | | | | | * Patch flaky parser test This test was a great idea, but it doesn't port over too well to using the GHC lexer. GHC rewrites its input a bit - nothing surprising, but we need to guard against those cases for the test. * Change instance head * Change use site
* Use the GHC lexer for the Hyperlinker backend (#714)Alec Theriault2018-02-011-46/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start changing to use GHC lexer * better cpp * Change SrcSpan to RealSrcSpan * Remove error * Try to stop too many open files * wip * wip * Revert "wip" This reverts commit b605510a195f26315e3d8ca90e6d95a6737553e1. Conflicts: haddock-api/haddock-api.cabal haddock-api/src/Haddock/Interface.hs * Remove pointless 'caching' * Use dlist rather than lists when finding vars * Use a map rather than list * Delete bogus comment * Rebase followup Things now run using the GHC lexer. There are still - stray debug statements - unnecessary changes w.r.t. master * Cleaned up differences w.r.t. current Haddock HEAD Things are looking good. quasiquotes in particular look beautiful: the TH ones (with Haskell source inside) colour/link their contents too! Haven't yet begun to check for possible performance problems. * Support CPP and top-level pragmas The support for these is hackier - but no more hacky than the existing support. * Tests pass, CPP is better recognized The tests were in some cases altered: I consider the new output to be more correct than the old one.... * Fix shrinking of source without tabs in test * Replace 'Position'/'Span' with GHC counterparts Replaces 'Position' -> 'GHC.RealSrcLoc' and 'Span' -> 'GHC.RealSrcSpan'. * Nits * Forgot entry in .cabal * Update changelog
* Fix bug with module name being hyperlinked to `Prelude`.Łukasz Hanuszczak2015-07-061-0/+1
|
* Fix broken tests for parsing and hyperlinking hash operators.Łukasz Hanuszczak2015-07-021-1/+1
|
* Add very simple QuickCheck properties for source parser spec.Łukasz Hanuszczak2015-06-301-0/+7
|
* Add simple tests for do-notation parsing.Łukasz Hanuszczak2015-06-301-0/+18
|
* Add tests related to parsing basic language constructs.Łukasz Hanuszczak2015-06-301-0/+20
|
* Add basic tests related to comment parsing.Łukasz Hanuszczak2015-06-301-1/+36
|
* Setup HSpec framework for Haddock API package.Łukasz Hanuszczak2015-06-302-0/+18