ghc-7.10.0.20141222: The GHC API

Safe HaskellNone
LanguageHaskell2010

ApiAnnotation

Synopsis

Documentation

getAnnotation :: ApiAnns -> SrcSpan -> AnnKeywordId -> [SrcSpan] Source

Retrieve a list of annotation SrcSpans based on the SrcSpan of the annotated AST element, and the known type of the annotation.

getAnnotationComments :: ApiAnns -> SrcSpan -> [Located AnnotationComment] Source

Retrieve the comments allocated to the current SrcSpan

data AnnKeywordId Source

Note: in general the names of these are taken from the corresponding token, unless otherwise noted See note [Api annotations] above for details of the usage

Instances

Eq AnnKeywordId 
Data AnnKeywordId 
Ord AnnKeywordId 
Show AnnKeywordId 
Outputable AnnKeywordId 
Typeable * AnnKeywordId 
Typeable AnnKeywordId AnnAs 
Typeable AnnKeywordId AnnAt 
Typeable AnnKeywordId AnnBang 
Typeable AnnKeywordId AnnBy 
Typeable AnnKeywordId AnnCase 
Typeable AnnKeywordId AnnClass 
Typeable AnnKeywordId AnnClose 
Typeable AnnKeywordId AnnColon 
Typeable AnnKeywordId AnnComma 
Typeable AnnKeywordId AnnDarrow 
Typeable AnnKeywordId AnnData 
Typeable AnnKeywordId AnnDcolon 
Typeable AnnKeywordId AnnDefault 
Typeable AnnKeywordId AnnDeriving 
Typeable AnnKeywordId AnnDo 
Typeable AnnKeywordId AnnDot 
Typeable AnnKeywordId AnnDotdot 
Typeable AnnKeywordId AnnElse 
Typeable AnnKeywordId AnnEqual 
Typeable AnnKeywordId AnnExport 
Typeable AnnKeywordId AnnFamily 
Typeable AnnKeywordId AnnForall 
Typeable AnnKeywordId AnnForeign 
Typeable AnnKeywordId AnnFunId 
Typeable AnnKeywordId AnnGroup 
Typeable AnnKeywordId AnnHeader 
Typeable AnnKeywordId AnnHiding 
Typeable AnnKeywordId AnnIf 
Typeable AnnKeywordId AnnImport 
Typeable AnnKeywordId AnnIn 
Typeable AnnKeywordId AnnInfix 
Typeable AnnKeywordId AnnInstance 
Typeable AnnKeywordId AnnLam 
Typeable AnnKeywordId AnnLarrow 
Typeable AnnKeywordId AnnLet 
Typeable AnnKeywordId AnnMdo 
Typeable AnnKeywordId AnnMinus 
Typeable AnnKeywordId AnnModule 
Typeable AnnKeywordId AnnNewtype 
Typeable AnnKeywordId AnnOf 
Typeable AnnKeywordId AnnOpen 
Typeable AnnKeywordId AnnPackageName 
Typeable AnnKeywordId AnnPattern 
Typeable AnnKeywordId AnnProc 
Typeable AnnKeywordId AnnQualified 
Typeable AnnKeywordId AnnRarrow 
Typeable AnnKeywordId AnnRec 
Typeable AnnKeywordId AnnRole 
Typeable AnnKeywordId AnnSafe 
Typeable AnnKeywordId AnnSemi 
Typeable AnnKeywordId AnnThen 
Typeable AnnKeywordId AnnTilde 
Typeable AnnKeywordId AnnTildehsh 
Typeable AnnKeywordId AnnType 
Typeable AnnKeywordId AnnUsing 
Typeable AnnKeywordId AnnVal 
Typeable AnnKeywordId AnnVbar 
Typeable AnnKeywordId AnnWhere 
Typeable AnnKeywordId Annlarrowtail 
Typeable AnnKeywordId Annrarrowtail 
Typeable AnnKeywordId AnnLarrowtail 
Typeable AnnKeywordId AnnRarrowtail 
Typeable AnnKeywordId AnnEofPos 

data AnnotationComment Source

Constructors

AnnDocCommentNext String

something beginning '-- |'

AnnDocCommentPrev String

something beginning '-- ^'

AnnDocCommentNamed String

something beginning '-- $'

AnnDocSection Int String

a section heading

AnnDocOptions String

doc options (prune, ignore-exports, etc)

AnnDocOptionsOld String

doc options declared "-- # ..."-style

AnnLineComment String

comment starting by "--"

AnnBlockComment String

comment in {- -}