Safe Haskell | None |
---|---|
Language | Haskell98 |
- data System = System Distribution Architecture
- data Distribution
- data TargetOS
- data DebianSuite
- data FreeBSDRelease
- data FBSDVersion
- isStable :: DebianSuite -> Bool
- type Release = String
- type Architecture = String
- type HostName = String
- type UserName = String
- newtype User = User UserName
- newtype Group = Group String
- userGroup :: User -> Group
- newtype Port = Port Int
- fromPort :: Port -> String
- systemToTargetOS :: System -> TargetOS
Documentation
High level description of a operating system.
data Distribution Source
Debian DebianSuite | |
Buntish Release | A well-known Debian derivative founded by a space tourist. The actual name of this distribution is not used in Propellor per http://joeyh.name/blog/entry/trademark_nonsense/ |
FreeBSD FreeBSDRelease |
Properties can target one or more OS's; the targets are part of the type of the property, so need to be kept fairly simple.
Eq TargetOS Source | |
Ord TargetOS Source | |
Show TargetOS Source | |
type EqT TargetOS OSDebian OSDebian = True Source | |
type EqT TargetOS OSDebian OSBuntish = False Source | |
type EqT TargetOS OSDebian OSFreeBSD = False Source | |
type EqT TargetOS OSBuntish OSDebian = False Source | |
type EqT TargetOS OSBuntish OSBuntish = True Source | |
type EqT TargetOS OSBuntish OSFreeBSD = False Source | |
type EqT TargetOS OSFreeBSD OSDebian = False Source | |
type EqT TargetOS OSFreeBSD OSBuntish = False Source | |
type EqT TargetOS OSFreeBSD OSFreeBSD = True Source |
data DebianSuite Source
Debian has several rolling suites, and a number of stable releases, such as Stable "jessie".
data FreeBSDRelease Source
FreeBSD breaks their releases into Production and Legacy.
data FBSDVersion Source
isStable :: DebianSuite -> Bool Source
type Architecture = String Source
Either a host name e.g., "haskell.org"
or a numeric host
address string consisting of a dotted decimal IPv4 address or an
IPv6 address e.g., "192.168.0.1"
.
systemToTargetOS :: System -> TargetOS Source