ghc-exactprint-1.2.0: ExactPrint for GHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Haskell.GHC.ExactPrint.Lookup

Synopsis

Documentation

keywordToString :: KeywordId -> String Source #

Maps AnnKeywordId to the corresponding String representation. There is no specific mapping for the following constructors. AnnOpen, AnnClose, AnnVal, AnnPackageName, AnnHeader, AnnFunId, AnnInfix

data KeywordId Source #

The different syntactic elements which are not represented in the AST.

Constructors

G AnnKeywordId

A normal keyword

AnnSemiSep

A separating comma

AnnTypeApp

Visible type application annotation

AnnComment Comment 
AnnString String

Used to pass information from Delta to Print when we have to work out details from the original SrcSpan.

Instances

Instances details
Show KeywordId Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types

Eq KeywordId Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types

data Comment Source #

A Haskell comment. The AnnKeywordId is present if it has been converted from an AnnKeywordId because the annotation must be interleaved into the stream and does not have a well-defined position

Constructors

Comment 

Fields

Instances

Instances details
Show Comment Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types

Outputable Comment Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types

Methods

ppr :: Comment -> SDoc #

Eq Comment Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types

Methods

(==) :: Comment -> Comment -> Bool #

(/=) :: Comment -> Comment -> Bool #

Ord Comment Source # 
Instance details

Defined in Language.Haskell.GHC.ExactPrint.Types