packages feed

tilia-0.2.0.0: corpora/vendored/cpp/expression/conditional-after-an-optional-prefix-out.hs

{-# LANGUAGE CPP #-}

-- A conditional after the prefix one branch puts in front of it comes out
-- once after the conditional of the prefix.
module GHC.TcPlugin.API.Names (missingModule) where

missingModule :: HscEnv -> ModuleName -> FindResult -> TcPluginM SDoc
missingModule hsc_env mod_name other = do
  let err_doc =
#if MIN_VERSION_ghc(9,8,0)
        missingInterfaceErrorDiagnostic defaultOpts $
#endif
#if MIN_VERSION_ghc(9,2,0)
        cannotFindModule hsc_env mod_name other
#else
        cannotFindModule (hsc_dflags hsc_env) mod_name other
#endif
  pure err_doc