language-c-comments-0.1: Extracting comments from C code

Language.C.Comments

Synopsis

Documentation

data Comment Source

Comment positions use Language.C.Data.Position for compatibility with Language.C.

Instances

Eq Comment 
Ord Comment

Comments are ordered by position within files.

Show Comment 

comments :: FilePath -> IO [Comment]Source

Extract comments from a C file

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.