| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Haskell.GHC.ExactPrint.Types
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
Constructors
| NormalLayout | |
| RigidLayout |
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
| |
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. |
newtype LayoutStartCol Source #
Marks the start column of a layout block.
Constructors
| LayoutStartCol | |
Fields | |
Instances
| Num LayoutStartCol Source # | |
Defined in Language.Haskell.GHC.ExactPrint.Types Methods (+) :: 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 Methods showsPrec :: Int -> LayoutStartCol -> ShowS # show :: LayoutStartCol -> String # showList :: [LayoutStartCol] -> ShowS # | |
| Eq LayoutStartCol Source # | |
Defined in Language.Haskell.GHC.ExactPrint.Types Methods (==) :: LayoutStartCol -> LayoutStartCol -> Bool # (/=) :: LayoutStartCol -> LayoutStartCol -> Bool # | |
showGhc :: Outputable a => a -> String Source #