Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CommentLink = CommentLink {
- commentSpan :: SrcSpan
- commentType :: CommentType
- data CommentType
- classifyComments :: [Comment] -> [CommentLink]
- findCommentType :: String -> CommentType
- data CommentSite = CommentSite {}
- commentable :: Data from => from -> [CommentSite]
- orderCommentsAndCommentables :: [CommentSite] -> [CommentLink] -> [Either CommentLink CommentSite]
Documentation
data CommentLink Source #
Describes the comment span, and the way it may be connected to the source code
CommentLink | |
|
Instances
Eq CommentLink Source # | |
Defined in Language.Haskell.Homplexity.Comments (==) :: CommentLink -> CommentLink -> Bool # (/=) :: CommentLink -> CommentLink -> Bool # | |
Ord CommentLink Source # | |
Defined in Language.Haskell.Homplexity.Comments compare :: CommentLink -> CommentLink -> Ordering # (<) :: CommentLink -> CommentLink -> Bool # (<=) :: CommentLink -> CommentLink -> Bool # (>) :: CommentLink -> CommentLink -> Bool # (>=) :: CommentLink -> CommentLink -> Bool # max :: CommentLink -> CommentLink -> CommentLink # min :: CommentLink -> CommentLink -> CommentLink # | |
Show CommentLink Source # | |
Defined in Language.Haskell.Homplexity.Comments showsPrec :: Int -> CommentLink -> ShowS # show :: CommentLink -> String # showList :: [CommentLink] -> ShowS # |
data CommentType Source #
Possible link between comment and commented entity.
CommentsBefore | May be counted as commenting object that starts just before. |
CommentsInside | May be counted as commenting object within which it exists. |
CommentsAfter | May be counted as commenting object that starts just after. |
Instances
classifyComments :: [Comment] -> [CommentLink] Source #
Classifies all comments in list, so they can be assigned to declarations later.
findCommentType :: String -> CommentType Source #
Finds Haddock markers of which declarations the comment pertains to.
data CommentSite Source #
Tagging of source range for each commentable object.
Instances
Eq CommentSite Source # | |
Defined in Language.Haskell.Homplexity.Comments (==) :: CommentSite -> CommentSite -> Bool # (/=) :: CommentSite -> CommentSite -> Bool # | |
Show CommentSite Source # | |
Defined in Language.Haskell.Homplexity.Comments showsPrec :: Int -> CommentSite -> ShowS # show :: CommentSite -> String # showList :: [CommentSite] -> ShowS # |
commentable :: Data from => from -> [CommentSite] Source #
Find comment sites for entire program.
orderCommentsAndCommentables :: [CommentSite] -> [CommentLink] -> [Either CommentLink CommentSite] Source #
Take together are commentable elements, and all comments, and order them by source location.