packages feed

Cabal-1.20.0.1: doc/API/Cabal/Distribution-Simple-CCompiler.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Distribution.Simple.CCompiler</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Distribution-Simple-CCompiler.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Cabal-1.20.0.1: A framework for packaging Haskell software</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Maintainer</th><td>cabal-devel@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">Distribution.Simple.CCompiler</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>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.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:CDialect">CDialect</a> <ul class="subs"><li>= <a href="#v:C">C</a>  </li><li>| <a href="#v:ObjectiveC">ObjectiveC</a>  </li><li>| <a href="#v:CPlusPlus">CPlusPlus</a>  </li><li>| <a href="#v:ObjectiveCPlusPlus">ObjectiveCPlusPlus</a>  </li></ul></li><li class="src short"><a href="#v:cSourceExtensions">cSourceExtensions</a> :: [<a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>]</li><li class="src short"><a href="#v:cDialectFilenameExtension">cDialectFilenameExtension</a> :: <a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:filenameCDialect">filenameCDialect</a> :: <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a>, <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:CDialect" class="def">CDialect</a>  </p><div class="doc"><p>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 <code>a</code> and <code>b</code> can be correctly interpreted as.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:C" class="def">C</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ObjectiveC" class="def">ObjectiveC</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:CPlusPlus" class="def">CPlusPlus</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ObjectiveCPlusPlus" class="def">ObjectiveCPlusPlus</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:CDialect" class="caption collapser" onclick="toggleSection('i:CDialect')">Instances</p><div id="section.i:CDialect" class="show"><table><tr><td class="src"><a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> <a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:cSourceExtensions" class="def">cSourceExtensions</a> :: [<a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>]</p><div class="doc"><p>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.
</p></div></div><div class="top"><p class="src"><a name="v:cDialectFilenameExtension" class="def">cDialectFilenameExtension</a> :: <a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></p><div class="doc"><p>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.
</p></div></div><div class="top"><p class="src"><a name="v:filenameCDialect" class="def">filenameCDialect</a> :: <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Distribution-Simple-CCompiler.html#t:CDialect">CDialect</a>, <a href="file:///Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/share/doc/ghc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>)</p><div class="doc"><p>Infers from a filename's extension the dialect of C which it contains,
   and whether it is intended to be passed through the preprocessor.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>