Copyright | 2011 Dan Knapp |
---|---|
Maintainer | [email protected] |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This simple package provides types and functions for interacting with C compilers. Currently it's just a type enumerating extant C-like languages, which we call dialects.
- data CDialect
- cSourceExtensions :: [String]
- cDialectFilenameExtension :: CDialect -> Bool -> String
- filenameCDialect :: String -> Maybe (CDialect, Bool)
Documentation
Represents a dialect of C. The Monoid instance expresses backward
compatibility, in the sense that 'mappend a b' is the least inclusive
dialect which both a
and b
can be correctly interpreted as.
cSourceExtensions :: [String] Source #
A list of all file extensions which are recognized as possibly containing some dialect of C code. Note that this list is only for source files, not for header files.