Language.Haskell.GhcMod.SrcUtils

ghc-mod-5.5.0.0: Happy Haskell Programming

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.SrcUtils

# Documentation

listifySpans :: Typeable a => TypecheckedSource -> (Int, Int) -> [Located a]

listifyParsedSpans :: Typeable a => ParsedSource -> (Int, Int) -> [Located a]

listifyRenamedSpans :: Typeable a => RenamedSource -> (Int, Int) -> [Located a]

listifyStaged :: Typeable r => Stage -> (r -> Bool) -> GenericQ [r]

cmp :: SrcSpan -> SrcSpan -> Ordering

toTup :: DynFlags -> PprStyle -> (SrcSpan, Type) -> ((Int, Int, Int, Int), String)

fourInts :: SrcSpan -> (Int, Int, Int, Int)

fourIntsHE :: SrcSpan -> (Int, Int, Int, Int)

typeSigInRangeHE :: Int -> Int -> Decl SrcSpanInfo -> Bool

pretty :: DynFlags -> PprStyle -> Type -> String

showName :: DynFlags -> PprStyle -> Name -> String

showOccName :: DynFlags -> PprStyle -> OccName -> String