{-| This is a helper module for the "Puppet.Daemon" module -}modulePuppet.InitwhereimportPuppet.Interpreter.TypesimportqualifiedData.MapasMapdataPrefs=Prefs{manifest::FilePath,-- ^ The path to the manifests.modules::FilePath,-- ^ The path to the modules.templates::FilePath,-- ^ The path to the template.compilepoolsize::Int,-- ^ Size of the compiler pool.parsepoolsize::Int-- ^ Size of the parser pool.}deriving(Show)-- | Generates the 'Prefs' structure from a single path.---- > genPrefs "/etc/puppet"genPrefs::String->PrefsgenPrefsbasedir=Prefs(basedir++"/manifests")(basedir++"/modules")(basedir++"/templates")11-- | Generates 'Facts' from pairs of strings.---- > genFacts [("hostname","test.com")]genFacts::[(String,String)]->FactsgenFacts=Map.fromList.concatMap(\(a,b)->[(a,ResolvedStringb),("::"++a,ResolvedStringb)])