ghc-9.0.1: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Iface.Ext.Debug

Synopsis

Documentation

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

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

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

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

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

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

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