Safe Haskell | None |
---|---|
Language | Haskell2010 |
Routines for getting todos from source code
No backwards compatibility is promised for any code in this library.
- parseComments :: Language -> Text -> [Comment]
- newCommentsFromDiff :: ByteString -> Either Text [Comment]
- getTodos :: Comment -> [Todo]
- formatTodo :: Todo -> Text
Documentation
Get comments from code or from diffs
parseComments :: Language -> Text -> [Comment] Source #
Given some source code, return a list of comments.
newCommentsFromDiff :: ByteString -> Either Text [Comment] Source #
Get the comments that were added or modified in a diff.
Silently ignores files if we can't figure out what their programming language is.
Turn comments into todos
Format todos
formatTodo :: Todo -> Text Source #