ghc-mod-5.8.0.0: Happy Haskell Hacking

Safe HaskellNone
LanguageHaskell2010

GhcMod.Gap

Synopsis

Documentation

withInteractiveContext :: GhcMonad m => m a -> m a #

setNoMaxRelevantBindings :: DynFlags -> DynFlags #

Set DynFlags equivalent to "-fno-max-relevant-bindings".

filterOutChildren :: (a -> TyThing) -> [a] -> [a] #

class HasType a where #

Minimal complete definition

getType

Methods

getType :: GhcMonad m => TypecheckedModule -> a -> m (Maybe (SrcSpan, Type)) #

Instances

data GapThing #

Constructors

GtA Type 
GtT TyCon 
GtN 
GtPatSyn PatSyn 

occName :: HasOccName name => name -> OccName #

parseModuleHeader #

Arguments

:: String

Haskell module source text (full Unicode is supported)

-> DynFlags 
-> FilePath

the filename (for source locations)

-> Either ErrorMessages (WarningMessages, Located (HsModule RdrName)) 

everythingStagedWithContext :: Stage -> s -> (r -> r -> r) -> r -> GenericQ (s -> (r, s)) -> GenericQ r #

Like everything, but avoid known potholes, based on the Stage that generated the Ast.

withCleanupSession :: GhcMonad m => m a -> m a #