Skip to content

Commit

Permalink
Merge pull request #3468 from accraze/system-docs
Browse files Browse the repository at this point in the history
Documentation for known os and arch aliases
  • Loading branch information
23Skidoo committed May 30, 2016
2 parents 8e2ee74 + 11650b2 commit 48a1de5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Cabal/Distribution/System.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ data ClassificationStrictness = Permissive | Compat | Strict
-- * Operating System
-- ------------------------------------------------------------

-- | These are the known OS names: Linux, Windows, OSX
-- ,FreeBSD, OpenBSD, NetBSD, DragonFly
-- ,Solaris, AIX, HPUX, IRIX
-- ,HaLVM ,Hurd ,IOS, Android,Ghcjs
--
-- The following aliases can also be used:,
-- * Windows aliases: mingw32, win32, cygwin32
-- * OSX alias: darwin
-- * Hurd alias: gnu
-- * FreeBSD alias: kfreebsdgnu
-- * Solaris alias: solaris2
--
data OS = Linux | Windows | OSX -- tier 1 desktop OSs
| FreeBSD | OpenBSD | NetBSD -- other free Unix OSs
| DragonFly
Expand Down Expand Up @@ -127,6 +139,17 @@ buildOS = classifyOS Permissive System.Info.os
-- * Machine Architecture
-- ------------------------------------------------------------

-- | These are the known Arches: I386, X86_64, PPC, PPC64, Sparc
-- ,Arm, Mips, SH, IA64, S39, Alpha, Hppa, Rs6000, M68k, Vax
-- and JavaScript.
--
-- The following aliases can also be used:
-- * PPC alias: powerpc
-- * PPC64 alias : powerpc64
-- * Sparc aliases: parc64, sun4
-- * Mips aliases: mipsel, mipseb
-- * Arm aliases: armeb, armel
--
data Arch = I386 | X86_64 | PPC | PPC64 | Sparc
| Arm | Mips | SH
| IA64 | S390
Expand Down

0 comments on commit 48a1de5

Please sign in to comment.