summaryrefslogtreecommitdiff
path: root/src/Propellor/Types/OS.hs
diff options
context:
space:
mode:
authorJoey Hess2015-06-01 16:12:21 -0400
committerJoey Hess2015-06-01 16:13:44 -0400
commit85c3d110882f0f9d70316235221ba8b20754661f (patch)
tree49e2ba8b16791ed9fd51a230478fab0207736131 /src/Propellor/Types/OS.hs
parenta50edc3d9f1fc630ba5f72aba6cfec9aca71c204 (diff)
reorganize Port type for systemd can use it
Diffstat (limited to 'src/Propellor/Types/OS.hs')
-rw-r--r--src/Propellor/Types/OS.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Propellor/Types/OS.hs b/src/Propellor/Types/OS.hs
index 58bd809a..c46d9a28 100644
--- a/src/Propellor/Types/OS.hs
+++ b/src/Propellor/Types/OS.hs
@@ -10,6 +10,7 @@ module Propellor.Types.OS (
User(..),
Group(..),
userGroup,
+ Port(..),
) where
import Network.BSD (HostName)
@@ -42,3 +43,6 @@ newtype Group = Group String
-- | Makes a Group with the same name as the User.
userGroup :: User -> Group
userGroup (User u) = Group u
+
+newtype Port = Port Int
+ deriving (Eq, Show)