diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-02-28 12:41:09 -0800 |
---|---|---|
committer | Alec Theriault <alec.theriault@gmail.com> | 2020-03-27 21:57:32 -0400 |
commit | 2a2020c5331c593319bd196aadccdc46e7a3f779 (patch) | |
tree | f3f6e605c1d82e10ad8afeb046ba8c8e4a7a1f5b /html-test/src | |
parent | b0514cc5d53bb37424177d2ba986216a914f8b1c (diff) |
Disallow qualified uses of reserved identifiers
This a GHC bug (https://gitlab.haskell.org/ghc/ghc/issues/14109) too,
but it is a relatively easy fix in Haddock. Note that the fix must live
in `haddock-api` instead of `haddock-library` because we can only really
decide if an identifier is a reserved one by asking the GHC lexer.
Fixes #952
Diffstat (limited to 'html-test/src')
-rw-r--r-- | html-test/src/Bug952.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/html-test/src/Bug952.hs b/html-test/src/Bug952.hs new file mode 100644 index 00000000..09b365e4 --- /dev/null +++ b/html-test/src/Bug952.hs @@ -0,0 +1,5 @@ +module Bug952 where + +-- | See 'case', 'of', '--' compared to 'Q.case', 'Q.of', 'Q.--' +foo :: () +foo = () |