Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | html-test: Always set language | Joachim Breitner | 2021-02-22 | 1 | -0/+1 |
| | | | | | | | | | | from ghc-9.2 on, the “default” langauge of GHC is expected to change more wildly. To prepare for that (and unblock https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4853), this sets the language for all the test files to `Haskell2010`. This should insolate this test suite against changes to the default. Cherry-picked from https://github.com/haskell/haddock/pull/1341 | ||||
* | Improve hyperlinker's 'spanToNewline' (#846) | Alec Theriault | 2018-06-13 | 1 | -0/+26 |
'spanToNewline' is used to help break apart the source into lines which can then be partioned into CPP and non-CPP chunks. It is important that 'spanToNewline' not break apart tokens, so it needs to properly handle things like * block comments, possibly nested * string literals, possibly multi-line * CPP macros, possibly multi-line String literals in particular were not being properly handled. The fix is to to fall back in 'Text.Read.lex' to help lex things that are not comments. Fixes #837. |