summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Whitton2019-11-12 14:55:41 -0700
committerJoey Hess2019-11-13 10:17:55 -0400
commita85d01661501b16da6bf97e543ce88e4f4f1fd77 (patch)
treebd1dc9b0b588bced03d08e12b37a964fe9457a97 /src
parent3632a07142dca7422c3343e98de33f2abec629aa (diff)
introduce propsInfo
Code from Joey by private e-mail.
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Types/Core.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Propellor/Types/Core.hs b/src/Propellor/Types/Core.hs
index 88c749b3..9f4dc519 100644
--- a/src/Propellor/Types/Core.hs
+++ b/src/Propellor/Types/Core.hs
@@ -109,3 +109,6 @@ instance IsProp ChildProperty where
getInfo (ChildProperty _ _ i _) = i
toChildProperty = id
getSatisfy (ChildProperty _ a _ _) = a
+
+propsInfo :: Props metatypes -> Info
+propsInfo (Props l) = mconcat (map getInfo l)