git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
comment
commit3e597f4eb2793d96879442ad611b12daca2aaeda authorAleksey Uymanov <s9gf4ult@gmail.com> dateFri 2 Sep 2022, 12:09 (4 years ago) parentad2cc9f
1 file changed+3
src/StackTrace/Plugin.hs+3
src/StackTrace/Plugin.hs+3
@@ -54,6 +54,9 @@ ghcStackImport =
5454 (simpleImportDecl $ mkModuleName "GHC.Stack")
5555 { ideclQualified = importDeclQualified, ideclAs = Just $ noLoc ghcStackModuleName }
5656 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
5760 srcSpan = RealSrcSpan (realSrcLocSpan $ mkRealSrcLoc "haskell-stack-trace-plugin:very-unique-file-name-to-avoid-collision" 1 1) Nothing
5861
5962#if __GLASGOW_HASKELL__ >= 900