| Cabal-1.6.0.1: A framework for packaging Haskell software | Contents | Index |
|
Distribution.System | Portability | portable | Maintainer | cabal-devel@haskell.org |
|
|
|
|
|
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 |
|
|
|
|
Operating System
|
|
data OS |
Constructors | Linux | | Windows | | OSX | | FreeBSD | | OpenBSD | | NetBSD | | Solaris | | AIX | | HPUX | | IRIX | | OtherOS String | |
| Instances | |
|
|
buildOS :: OS |
|
Machine Architecture
|
|
data Arch |
Constructors | I386 | | X86_64 | | PPC | | PPC64 | | Sparc | | Arm | | Mips | | SH | | IA64 | | S390 | | Alpha | | Hppa | | Rs6000 | | M68k | | Vax | | OtherArch String | |
| Instances | |
|
|
buildArch :: Arch |
|
Platform is a pair of arch and OS
|
|
data Platform |
Constructors | | Instances | |
|
|
buildPlatform :: Platform |
|
Produced by Haddock version 2.3.0 |