Cabal-1.6.0.3: A framework for packaging Haskell softwareSource codeContentsIndex
Distribution.System
Portabilityportable
Maintainercabal-devel@haskell.org
Contents
Operating System
Machine Architecture
Platform is a pair of arch and OS
Description
Cabal often needs to do slightly different things on specific platforms. You probably know about the os however using that is very inconvenient because it is a string and different Haskell implementations do not agree on using the same strings for the same platforms! (In particular see the controversy over windows vs ming32). So to make it more consistent and easy to use we have an OS enumeration.
Synopsis
data OS
= Linux
| Windows
| OSX
| FreeBSD
| OpenBSD
| NetBSD
| Solaris
| AIX
| HPUX
| IRIX
| OtherOS String
buildOS :: OS
data Arch
= I386
| X86_64
| PPC
| PPC64
| Sparc
| Arm
| Mips
| SH
| IA64
| S390
| Alpha
| Hppa
| Rs6000
| M68k
| Vax
| OtherArch String
buildArch :: Arch
data Platform = Platform Arch OS
buildPlatform :: Platform
Operating System
data OS Source
Constructors
Linux
Windows
OSX
FreeBSD
OpenBSD
NetBSD
Solaris
AIX
HPUX
IRIX
OtherOS String
show/hide Instances
buildOS :: OSSource
Machine Architecture
data Arch Source
Constructors
I386
X86_64
PPC
PPC64
Sparc
Arm
Mips
SH
IA64
S390
Alpha
Hppa
Rs6000
M68k
Vax
OtherArch String
show/hide Instances
buildArch :: ArchSource
Platform is a pair of arch and OS
data Platform Source
Constructors
Platform Arch OS
show/hide Instances
buildPlatform :: PlatformSource
Produced by Haddock version 2.4.2