Safe Haskell | None |
---|
- data Comment
- data CommentFormat
- = SingleLine
- | MultiLine
- commentPosition :: Comment -> Position
- commentText :: Comment -> String
- commentTextWithoutMarks :: Comment -> String
- commentFormat :: Comment -> CommentFormat
- comments :: FilePath -> IO [Comment]
- commentsFromString :: String -> [Comment]
Documentation
Comment positions use Language.C.Data.Position for compatibility with Language.C.
data CommentFormat Source
Comments can be either single- or multi-line style.
commentPosition :: Comment -> PositionSource
The position of the comment within the source file.
commentText :: Comment -> StringSource
The text of a comment (including the comment marks).
commentTextWithoutMarks :: Comment -> StringSource
The text of a comment, but with the comment marks removed.
commentFormat :: Comment -> CommentFormatSource
The format of a comment (single- or multi-line).
commentsFromString :: String -> [Comment]Source
Extract comments from a string. A comment's position contains a filename; this method uses the empty string in its place.