This commit is contained in:
Aleksey Uymanov 2022-09-02 12:09:22 +05:00
parent ad2cc9f1e8
commit 3e597f4eb2

View File

@ -54,6 +54,9 @@ ghcStackImport =
(simpleImportDecl $ mkModuleName "GHC.Stack")
{ ideclQualified = importDeclQualified, ideclAs = Just $ noLoc ghcStackModuleName }
where
-- This is for GHC-9 related problems. @noLoc@ causes GHC to throw warnings
-- about unused imports. Even if the import is used
-- See: https://github.com/waddlaw/haskell-stack-trace-plugin/issues/16
srcSpan = RealSrcSpan (realSrcLocSpan $ mkRealSrcLoc "haskell-stack-trace-plugin:very-unique-file-name-to-avoid-collision" 1 1) Nothing
#if __GLASGOW_HASKELL__ >= 900