summaryrefslogtreecommitdiff
path: root/Propellor/Property/Network.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-03 02:27:17 -0400
committerJoey Hess2014-04-03 02:27:17 -0400
commitfdb48b1dd11b802d0c2124fb3833672ca87ab870 (patch)
tree6537cfb4d2211eaf478411ca95cec56dbe706bcc /Propellor/Property/Network.hs
parent9a9f249ff0cfe2b5f601c84368457245ddb4d78b (diff)
api doc improvements
Diffstat (limited to 'Propellor/Property/Network.hs')
-rw-r--r--Propellor/Property/Network.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Propellor/Property/Network.hs b/Propellor/Property/Network.hs
index cbef8baa..eae5828f 100644
--- a/Propellor/Property/Network.hs
+++ b/Propellor/Property/Network.hs
@@ -23,5 +23,7 @@ ipv6to4 = fileProperty "ipv6to4" go interfaces
, "# End automatically added by propeller"
]
-ifUp :: String -> Property
+type Interface = String
+
+ifUp :: Interface -> Property
ifUp iface = cmdProperty "ifup" [iface]