Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Stylish.GHC
Description
Utility functions for working with the GHC AST
Synopsis
- dropAfterLocated :: Maybe (Located a) -> [RealLocated b] -> [RealLocated b]
- dropBeforeLocated :: Maybe (Located a) -> [RealLocated b] -> [RealLocated b]
- dropBeforeAndAfter :: Located a -> [RealLocated b] -> [RealLocated b]
- unsafeGetRealSrcSpan :: Located a -> RealSrcSpan
- getEndLineUnsafe :: Located a -> Int
- getStartLineUnsafe :: Located a -> Int
- baseDynFlags :: DynFlags
- showOutputable :: Outputable a => a -> String
- getConDecls :: HsDataDefn GhcPs -> [LConDecl GhcPs]
- epAnnComments :: EpAnn a -> [LEpaComment]
- deepAnnComments :: (Data a, Typeable a) => a -> [LEpaComment]
Documentation
dropAfterLocated :: Maybe (Located a) -> [RealLocated b] -> [RealLocated b] #
dropBeforeLocated :: Maybe (Located a) -> [RealLocated b] -> [RealLocated b] #
dropBeforeAndAfter :: Located a -> [RealLocated b] -> [RealLocated b] #
Unsafe getters
unsafeGetRealSrcSpan :: Located a -> RealSrcSpan #
getEndLineUnsafe :: Located a -> Int #
getStartLineUnsafe :: Located a -> Int #
Standard settings
Outputable operators
showOutputable :: Outputable a => a -> String #
Deconstruction
getConDecls :: HsDataDefn GhcPs -> [LConDecl GhcPs] #
epAnnComments :: EpAnn a -> [LEpaComment] #
deepAnnComments :: (Data a, Typeable a) => a -> [LEpaComment] #