| Copyright | Duncan Coutts 2007-2008 |
|---|---|
| Maintainer | cabal-devel@haskell.org |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Distribution.System
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.
Operating System
Constructors
| Linux | |
| Windows | |
| OSX | |
| FreeBSD | |
| OpenBSD | |
| NetBSD | |
| DragonFly | |
| Solaris | |
| AIX | |
| HPUX | |
| IRIX | |
| HaLVM | |
| Hurd | |
| IOS | |
| Android | |
| Ghcjs | |
| OtherOS String |
Instances
Machine Architecture
Constructors
| I386 | |
| X86_64 | |
| PPC | |
| PPC64 | |
| Sparc | |
| Arm | |
| Mips | |
| SH | |
| IA64 | |
| S390 | |
| Alpha | |
| Hppa | |
| Rs6000 | |
| M68k | |
| Vax | |
| JavaScript | |
| OtherArch String |
Instances
Platform is a pair of arch and OS
Instances
| Eq Platform | |
| Data Platform | |
| Ord Platform | |
| Read Platform | |
| Show Platform | |
| Generic Platform | |
| Binary Platform | |
| Text Platform | |
| type Rep Platform = D1 (MetaData "Platform" "Distribution.System" "Cabal-1.23.1.0" False) (C1 (MetaCons "Platform" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Arch)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OS)))) | |
buildPlatform :: Platform Source
The platform Cabal was compiled on. In most cases,
LocalBuildInfo.hostPlatform should be used instead (the platform we're
targeting).
Internal
knownArches :: [Arch] Source