git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
comment
3e597f4Aleksey Uymanov
src/StackTrace/Plugin.hs+3
@@ -54,6 +54,9 @@ ghcStackImport =
54 (simpleImportDecl $ mkModuleName "GHC.Stack")
54 (simpleImportDecl $ mkModuleName "GHC.Stack")
55 { ideclQualified = importDeclQualified, ideclAs = Just $ noLoc ghcStackModuleName }
55 { ideclQualified = importDeclQualified, ideclAs = Just $ noLoc ghcStackModuleName }
56 where
56 where
57+ -- This is for GHC-9 related problems. @noLoc@ causes GHC to throw warnings
58+ -- about unused imports. Even if the import is used
59+ -- See: https://github.com/waddlaw/haskell-stack-trace-plugin/issues/16
57 srcSpan = RealSrcSpan (realSrcLocSpan $ mkRealSrcLoc "haskell-stack-trace-plugin:very-unique-file-name-to-avoid-collision" 1 1) Nothing
60 srcSpan = RealSrcSpan (realSrcLocSpan $ mkRealSrcLoc "haskell-stack-trace-plugin:very-unique-file-name-to-avoid-collision" 1 1) Nothing
58
61
59#if __GLASGOW_HASKELL__ >= 900
62#if __GLASGOW_HASKELL__ >= 900