ghc-9.6.0.20230210: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Iface.Ext.Debug

Synopsis

Documentation

type Diff a = a -> a -> [SDoc] Source #

diffAsts :: (Outputable a, Eq a, Ord a) => Diff a -> Diff (Map HiePath (HieAST a)) Source #

diffAst :: (Outputable a, Eq a, Ord a) => Diff a -> Diff (HieAST a) Source #

diffList :: Diff a -> Diff [a] Source #

eqDiff :: (Outputable a, Eq a) => Diff a Source #

validateScopes :: Module -> Map HiePath (HieAST a) -> [SDoc] Source #

Look for any identifiers which occur outside of their supposed scopes. Returns a list of error messages.