diff options
| author | Zihao Wang <dev@wzhd.org> | 2016-12-26 11:13:16 +0800 |
|---|---|---|
| committer | Zihao Wang <dev@wzhd.org> | 2017-02-03 22:33:06 +0800 |
| commit | 442fa3706de3d7329552c78d314b5a8f653ca65d (patch) | |
| tree | 91fde7dd236be28d8e7bd194a13e8afebe03763a /src/Propellor/Info.hs | |
| parent | 39afe530d4bd43c0e4f4142a03e375019222a8b8 (diff) | |
add types for Arch Linux
Signed-off-by: Zihao Wang <dev@wzhd.org>
Diffstat (limited to 'src/Propellor/Info.hs')
| -rw-r--r-- | src/Propellor/Info.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Propellor/Info.hs b/src/Propellor/Info.hs index 3d7f07a5..49ca689f 100644 --- a/src/Propellor/Info.hs +++ b/src/Propellor/Info.hs @@ -3,6 +3,7 @@ module Propellor.Info ( osDebian, osBuntish, + osArchLinux, osFreeBSD, setInfoProperty, addInfoProperty, @@ -106,6 +107,10 @@ osBuntish release arch = tightenTargets $ os (System (Buntish release) arch) osFreeBSD :: FreeBSDRelease -> Architecture -> Property (HasInfo + FreeBSD) osFreeBSD release arch = tightenTargets $ os (System (FreeBSD release) arch) +-- | Specifies that a host's operating system is Arch Linux +osArchLinux :: Architecture -> Property (HasInfo + ArchLinux) +osArchLinux arch = tightenTargets $ os (System (ArchLinux) arch) + os :: System -> Property (HasInfo + UnixLike) os system = pureInfoProperty ("Operating " ++ show system) (InfoVal system) |
