git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
2 files changed+5−2
since splitsnapshots
unifiedsplit
haskell-stack-trace-plugin.cabal+2−2 src/StackTrace/Plugin.hs+3
haskell-stack-trace-plugin.cabal+2−2
@@ -32,13 +32,13 @@ flag dev
3232 default: False
3333
3434common common-opts
35− build-depends: base >=4.12 && <4.16
35+ build-depends: base >=4.12 && <4.18
3636 default-language: Haskell2010
3737
3838library
3939 import: common-opts
4040 hs-source-dirs: src
41− build-depends: ghc ^>=8.6 || ^>=8.8 || ^>=8.10 || ^>=9.0
41+ build-depends: ghc ^>=8.6 || ^>=8.8 || ^>=8.10 || ^>=9.0 || ^>=9.2 || ^>=9.4
4242 exposed-modules: StackTrace.Plugin
4343
4444 if flag(dev)
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