Cabal-1.4.0.1: A framework for packaging Haskell softwareSource codeContentsIndex
Distribution.Compiler
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Contents
Compiler flavor
Compiler id
Description
Haskell compiler flavors
Synopsis
data CompilerFlavor
= GHC
| NHC
| YHC
| Hugs
| HBC
| Helium
| JHC
| OtherCompiler String
buildCompilerFlavor :: CompilerFlavor
defaultCompilerFlavor :: Maybe CompilerFlavor
parseCompilerFlavorCompat :: ReadP r CompilerFlavor
data CompilerId = CompilerId CompilerFlavor Version
Compiler flavor
data CompilerFlavor Source
Constructors
GHC
NHC
YHC
Hugs
HBC
Helium
JHC
OtherCompiler String
show/hide Instances
buildCompilerFlavor :: CompilerFlavorSource
defaultCompilerFlavor :: Maybe CompilerFlavorSource

The default compiler flavour to pick when compiling stuff. This defaults to the compiler used to build the Cabal lib.

However if it's not a recognised compiler then it's Nothing and the user will have to specify which compiler they want.

parseCompilerFlavorCompat :: ReadP r CompilerFlavorSource

Like classifyCompilerFlavor but compatible with the old ReadS parser.

It is compatible in the sense that it accepts only the same strings, eg GHC but not ghc. However other strings get mapped to OtherCompiler. 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.

Compiler id
data CompilerId Source
Constructors
CompilerId CompilerFlavor Version
show/hide Instances
Produced by Haddock version 2.3.0