From 3632a07142dca7422c3343e98de33f2abec629aa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 11 Nov 2019 15:44:12 -0400 Subject: Changed the ChrootBootstrapper type class's buildchroot method to take a Info parameter, instead of Maybe System. The System can be extracted from the Info; this also allows the chroot's Info to be introspected for eg, the apt mirror. (API change) --- src/Propellor/Types/Info.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Propellor/Types') diff --git a/src/Propellor/Types/Info.hs b/src/Propellor/Types/Info.hs index b941cc8f..27633712 100644 --- a/src/Propellor/Types/Info.hs +++ b/src/Propellor/Types/Info.hs @@ -63,6 +63,7 @@ addInfo (Info l) v = Info (l++[InfoEntry v]) toInfo :: IsInfo v => v -> Info toInfo = addInfo mempty +-- | Extracts a value from an Info. fromInfo :: IsInfo v => Info -> v fromInfo (Info l) = mconcat (mapMaybe extractInfoEntry l) -- cgit v1.2.3