aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-06-06 22:37:28 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-06-30 22:37:48 +0200
commit7d43b8a8c9538692beb91a4c3a485e82b40559ab (patch)
tree9b8d50489809ff0d66b5bd42433d20fbd705fec6 /haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
parentcb3ece1a493eb444ccb61b6ad3c74e922184b63e (diff)
Fix span matcher bug causing wrong items being hyperlinked.
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
index 031ddd5c..7d88b7fb 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
@@ -48,5 +48,5 @@ matches tspan (GHC.RealSrcSpan aspan)
rs = (posRow . spStart) tspan == GHC.srcSpanStartLine aspan
cs = (posCol . spStart) tspan == GHC.srcSpanStartCol aspan
re = (posRow . spEnd) tspan == GHC.srcSpanEndLine aspan
- ce = (posCol . spEnd) tspan == GHC.srcSpanStartLine aspan
+ ce = (posCol . spEnd) tspan == GHC.srcSpanEndCol aspan
matches _ _ = False