difftodo-0.1.0: Generate todo lists from source code

Safe HaskellNone
LanguageHaskell2010

Fixme.Comment

Contents

Synopsis

Understand comments

data Located a Source #

A thing that is located somewhere in a text file.

Instances

Eq a => Eq (Located a) Source # 

Methods

(==) :: Located a -> Located a -> Bool #

(/=) :: Located a -> Located a -> Bool #

Show a => Show (Located a) Source # 

Methods

showsPrec :: Int -> Located a -> ShowS #

show :: Located a -> String #

showList :: [Located a] -> ShowS #

parseComments :: Language -> Text -> [Comment] Source #

Given some source code, return a list of comments.

Exposed for testing

parseComments' :: [SourceLine] -> [Comment] Source #

Given a consecutive sequence of lexed lines of source, return a list of all the comments found, along with the line number on which the comment starts.

Understand programming languages

type Language = Text Source #

Wrappers around syntax highlighting code.

Exposed for testing