Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 1f2b142b9d2ef4849a6f5316fa1c5b12 > files > 1163

ghc-6.10.4-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Distribution.Compiler</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Distribution-Compiler.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>Cabal-1.6.0.3: A framework for packaging Haskell software</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Distribution.Compiler</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>cabal-devel@haskell.org</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Compiler flavor
</A
></DT
><DT
><A HREF="#2"
>Compiler id
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>This has an enumeration of the various compilers that Cabal knows about. It
 also specifies the default compiler. Sadly you'll often see code that does
 case analysis on this compiler flavour enumeration like:
</P
><PRE
> case compilerFlavor comp of
   GHC -&gt; GHC.getInstalledPackages verbosity packageDb progconf
   JHC -&gt; JHC.getInstalledPackages verbosity packageDb progconf
</PRE
><P
>Obviously it would be better to use the proper Compiler abstraction
 because that would keep all the compiler-specific code together.
 Unfortunately we cannot make this change yet without breaking the
 UserHooks api, which would break all custom <TT
>Setup.hs</TT
> files, so for the
 moment we just have to live with this deficiency. If you're interested, see
 ticket #50.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ACompilerFlavor"
>CompilerFlavor</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3AGHC"
>GHC</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3ANHC"
>NHC</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AYHC"
>YHC</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AHugs"
>Hugs</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AHBC"
>HBC</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AHelium"
>Helium</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AJHC"
>JHC</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AOtherCompiler"
>OtherCompiler</A
> <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AbuildCompilerFlavor"
>buildCompilerFlavor</A
> :: <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AdefaultCompilerFlavor"
>defaultCompilerFlavor</A
> :: <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AparseCompilerFlavorCompat"
>parseCompilerFlavorCompat</A
> ::  <A HREF="Distribution-Compat-ReadP.html#t%3AReadP"
>ReadP</A
> r <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ACompilerId"
>CompilerId</A
>  = <A HREF="#v%3ACompilerId"
>CompilerId</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
> <A HREF="../base/Data-Version.html#t%3AVersion"
>Version</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Compiler flavor
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:CompilerFlavor"
><A NAME="t%3ACompilerFlavor"
></A
></A
><B
>CompilerFlavor</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:GHC"
><A NAME="v%3AGHC"
></A
></A
><B
>GHC</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:NHC"
><A NAME="v%3ANHC"
></A
></A
><B
>NHC</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:YHC"
><A NAME="v%3AYHC"
></A
></A
><B
>YHC</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Hugs"
><A NAME="v%3AHugs"
></A
></A
><B
>Hugs</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:HBC"
><A NAME="v%3AHBC"
></A
></A
><B
>HBC</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:Helium"
><A NAME="v%3AHelium"
></A
></A
><B
>Helium</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:JHC"
><A NAME="v%3AJHC"
></A
></A
><B
>JHC</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:OtherCompiler"
><A NAME="v%3AOtherCompiler"
></A
></A
><B
>OtherCompiler</B
> <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:CompilerFlavor')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:CompilerFlavor" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="../base/Data-Eq.html#t%3AEq"
>Eq</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Data-Ord.html#t%3AOrd"
>Ord</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Text-Read.html#t%3ARead"
>Read</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Text-Show.html#t%3AShow"
>Show</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Distribution-Text.html#t%3AText"
>Text</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:buildCompilerFlavor"
><A NAME="v%3AbuildCompilerFlavor"
></A
></A
><B
>buildCompilerFlavor</B
> :: <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:defaultCompilerFlavor"
><A NAME="v%3AdefaultCompilerFlavor"
></A
></A
><B
>defaultCompilerFlavor</B
> :: <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="doc"
><P
>The default compiler flavour to pick when compiling stuff. This defaults
 to the compiler used to build the Cabal lib.
</P
><P
>However if it's not a recognised compiler then it's <TT
><A HREF="../base/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> and the user
 will have to specify which compiler they want.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:parseCompilerFlavorCompat"
><A NAME="v%3AparseCompilerFlavorCompat"
></A
></A
><B
>parseCompilerFlavorCompat</B
> ::  <A HREF="Distribution-Compat-ReadP.html#t%3AReadP"
>ReadP</A
> r <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Like <TT
>classifyCompilerFlavor</TT
> but compatible with the old ReadS parser.
</P
><P
>It is compatible in the sense that it accepts only the same strings,
 eg <A HREF="GHC.html"
>GHC</A
> but not <A HREF="ghc.html"
>ghc</A
>. However other strings get mapped to <TT
><A HREF="Distribution-Compiler.html#v%3AOtherCompiler"
>OtherCompiler</A
></TT
>.
 The point of this is that we do not allow extra valid values that would
 upset older Cabal versions that had a stricter parser however we cope with
 new values more gracefully so that we'll be able to introduce new value in
 future without breaking things so much.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>Compiler id
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:CompilerId"
><A NAME="t%3ACompilerId"
></A
></A
><B
>CompilerId</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:CompilerId"
><A NAME="v%3ACompilerId"
></A
></A
><B
>CompilerId</B
> <A HREF="Distribution-Compiler.html#t%3ACompilerFlavor"
>CompilerFlavor</A
> <A HREF="../base/Data-Version.html#t%3AVersion"
>Version</A
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:CompilerId')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:CompilerId" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="../base/Data-Eq.html#t%3AEq"
>Eq</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerId"
>CompilerId</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Data-Ord.html#t%3AOrd"
>Ord</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerId"
>CompilerId</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Text-Read.html#t%3ARead"
>Read</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerId"
>CompilerId</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="../base/Text-Show.html#t%3AShow"
>Show</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerId"
>CompilerId</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Distribution-Text.html#t%3AText"
>Text</A
> <A HREF="Distribution-Compiler.html#t%3ACompilerId"
>CompilerId</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.4.2</TD
></TR
></TABLE
></BODY
></HTML
>