Cabal-1.24.0.0: A framework for packaging Haskell software

Distribution.Simple.CCompiler

Description

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.

Synopsis

# Documentation

data CDialect Source #

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.

Constructors

 C ObjectiveC CPlusPlus ObjectiveCPlusPlus

Instances

 # Methods # MethodsshowList :: [CDialect] -> ShowS Source # # Methodsstimes :: Integral b => b -> CDialect -> CDialect Source # # Methodsmconcat :: [CDialect] -> CDialect 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.

Takes a dialect of C and whether code is intended to be passed through the preprocessor, and returns a filename extension for containing that code.

Infers from a filename's extension the dialect of C which it contains, and whether it is intended to be passed through the preprocessor.