aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Interface.hs
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2020-01-26 00:19:37 +0300
committerVladislav Zavialov <vlad.z.4096@gmail.com>2020-02-28 15:53:52 +0300
commitb104c573fdc6efcecc3bfaa2fb6084b7679f32da (patch)
tree2e81f4ec519b0c60cf325a5a980395d4c6545afc /haddock-api/src/Haddock/Interface.hs
parent78d0e033a2f8ce5dc1f5e2e4eb8b823ee4d1d1bf (diff)
Ignore the BufLoc/BufSpan added in GHC's !2516
Diffstat (limited to 'haddock-api/src/Haddock/Interface.hs')
-rw-r--r--haddock-api/src/Haddock/Interface.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Interface.hs b/haddock-api/src/Haddock/Interface.hs
index 008beb14..4489bd2a 100644
--- a/haddock-api/src/Haddock/Interface.hs
+++ b/haddock-api/src/Haddock/Interface.hs
@@ -187,7 +187,7 @@ processModule verbosity modsum flags modMap instIfaceMap = do
where
formatName :: SrcSpan -> HsDecl GhcRn -> String
formatName loc n = p (getMainDeclBinder n) ++ case loc of
- RealSrcSpan rss -> " (" ++ unpackFS (srcSpanFile rss) ++ ":" ++ show (srcSpanStartLine rss) ++ ")"
+ RealSrcSpan rss _ -> " (" ++ unpackFS (srcSpanFile rss) ++ ":" ++ show (srcSpanStartLine rss) ++ ")"
_ -> ""
p [] = ""