Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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] Source #
dropBeforeLocated :: Maybe (Located a) -> [RealLocated b] -> [RealLocated b] Source #
dropBeforeAndAfter :: Located a -> [RealLocated b] -> [RealLocated b] Source #
Unsafe getters
unsafeGetRealSrcSpan :: Located a -> RealSrcSpan Source #
getEndLineUnsafe :: Located a -> Int Source #
getStartLineUnsafe :: Located a -> Int Source #
Standard settings
Outputable operators
showOutputable :: Outputable a => a -> String Source #
Deconstruction
getConDecls :: HsDataDefn GhcPs -> [LConDecl GhcPs] Source #
epAnnComments :: EpAnn a -> [LEpaComment] Source #
deepAnnComments :: (Data a, Typeable a) => a -> [LEpaComment] Source #