Language.Haskell.GhcMod.Gap

ghc-mod-5.5.0.0: Happy Haskell Programming

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.Gap

# Documentation

type ClsInst = ClsInst

mkTarget :: TargetId -> Bool -> Maybe (StringBuffer, UTCTime) -> Target

withStyle :: DynFlags -> PprStyle -> SDoc -> Doc

type GmLogAction = LogAction

setLogAction :: DynFlags -> GmLogAction -> DynFlags

getSrcSpan :: SrcSpan -> Maybe (Int, Int, Int, Int)

getSrcFile :: SrcSpan -> Maybe String

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

fOptions :: [String]

toStringBuffer :: GhcMonad m => [String] -> m StringBuffer

showSeverityCaption :: Severity -> String

setCabalPkg :: DynFlags -> DynFlags

setHideAllPackages :: DynFlags -> DynFlags

setDeferTypeErrors :: DynFlags -> DynFlags

setDeferTypedHoles :: DynFlags -> DynFlags

setWarnTypedHoles :: DynFlags -> DynFlags

setDumpSplices :: DynFlags -> DynFlags

isDumpSplices :: DynFlags -> Bool

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

infoThing :: GhcMonad m => (FilePath -> FilePath) -> Expression -> m SDoc

pprInfo :: (FilePath -> FilePath) -> Bool -> (TyThing, Fixity, [ClsInst], [FamInst]) -> SDoc

class HasType a where

Methods

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

Instances

HasType (LHsBind Id) |

errorMsgSpan :: ErrMsg -> SrcSpan

typeForUser :: Type -> SDoc

nameForUser :: Name -> SDoc

occNameForUser :: OccName -> SDoc

deSugar :: TypecheckedModule -> LHsExpr Id -> HscEnv -> IO (Maybe CoreExpr)

showDocWith :: DynFlags -> Mode -> Doc -> String

data GapThing

Constructors

GtA Type |
GtT TyCon |
GtN |

fromTyThing :: TyThing -> GapThing

fileModSummary :: GhcMonad m => FilePath -> m ModSummary

type WarnFlags = IntSet

emptyWarnFlags :: WarnFlags

type GLMatch = LMatch RdrName (LHsExpr RdrName)

type GLMatchI = LMatch Id (LHsExpr Id)

getClass :: [LInstDecl Name] -> Maybe (Name, SrcSpan)

occName :: HasOccName name => name -> OccName

listVisibleModuleNames :: DynFlags -> [ModuleName]

listVisibleModules :: DynFlags -> [Module]

lookupModulePackageInAllPackages :: DynFlags -> ModuleName -> [String]

isSynTyCon :: TyCon -> Bool

parseModuleHeader

Arguments

:: String | Haskell module source text (full Unicode is supported)
-> DynFlags |
-> FilePath | the filename (for source locations)
-> Either ErrorMessages (WarningMessages, Located (HsModule RdrName)) |

mkErrStyle' :: DynFlags -> PrintUnqualified -> PprStyle