aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/Bug253.hs
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-03-26 19:29:25 +0000
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-03-27 00:20:09 +0000
commit7d8ece225e5387d0d08a675bda82bd2a1af5a173 (patch)
tree046c1d8871429c8ef3df21059e792066feb41633 /html-test/src/Bug253.hs
parentf42970cc6d62a63529874bf7dfe0f6e3c010dd13 (diff)
Test for anchor defaulting
I delete the old tests because it turns out that: * test runner would never put them in scope of each other even with imports so just one would suffice * test runner actually needed some hacking to keep links so in the end we would end up with no anchors making them useless
Diffstat (limited to 'html-test/src/Bug253.hs')
-rw-r--r--html-test/src/Bug253.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/html-test/src/Bug253.hs b/html-test/src/Bug253.hs
new file mode 100644
index 00000000..499f6cd4
--- /dev/null
+++ b/html-test/src/Bug253.hs
@@ -0,0 +1,10 @@
+-- | This module tests that if we're trying to link to a /qualified/
+-- identifier that's not in scope, we get an anchor as if it was a
+-- variable. Previous behaviour was to treat it as a type constructor
+-- so issue like #253 arose. Also see @rename@ function comments in
+-- source.
+module Bug253 where
+
+-- | This link should generate @#v@ anchor: 'DoesNotExist.fakeFakeFake'
+foo :: ()
+foo = ()