Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Pos = (Int, Int)
- data Rigidity
- data Comment = Comment {
- commentContents :: !String
- commentAnchor :: !Anchor
- commentOrigin :: !(Maybe AnnKeywordId)
- data KeywordId
- newtype LayoutStartCol = LayoutStartCol {}
- showGhc :: Outputable a => a -> String
Documentation
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
Comment | |
|
The different syntactic elements which are not represented in the AST.
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. |
newtype LayoutStartCol Source #
Marks the start column of a layout block.
Instances
Num LayoutStartCol Source # | |
Defined in Language.Haskell.GHC.ExactPrint.Types (+) :: LayoutStartCol -> LayoutStartCol -> LayoutStartCol # (-) :: LayoutStartCol -> LayoutStartCol -> LayoutStartCol # (*) :: LayoutStartCol -> LayoutStartCol -> LayoutStartCol # negate :: LayoutStartCol -> LayoutStartCol # abs :: LayoutStartCol -> LayoutStartCol # signum :: LayoutStartCol -> LayoutStartCol # fromInteger :: Integer -> LayoutStartCol # | |
Show LayoutStartCol Source # | |
Defined in Language.Haskell.GHC.ExactPrint.Types showsPrec :: Int -> LayoutStartCol -> ShowS # show :: LayoutStartCol -> String # showList :: [LayoutStartCol] -> ShowS # | |
Eq LayoutStartCol Source # | |
Defined in Language.Haskell.GHC.ExactPrint.Types (==) :: LayoutStartCol -> LayoutStartCol -> Bool # (/=) :: LayoutStartCol -> LayoutStartCol -> Bool # |
showGhc :: Outputable a => a -> String Source #