language-puppet-1.3.8.1: Tools to parse and evaluate the Puppet DSL.

Safe HaskellNone
LanguageHaskell98

Puppet.Utils

Contents

Description

Those are utility functions, most of them being pretty much self explanatory.

Synopsis

Documentation

takeBaseName :: Text -> Text #

See System.FilePath.Posix

takeDirectory :: Text -> Text #

See System.FilePath.Posix

loadYamlFile :: FromJSON a => FilePath -> IO a #

Read a yaml file and throw a runtime error if the parsing fails

getFiles :: Text -> Text -> Text -> IO [Text] #

ifromList :: (Monoid m, At m, Foldable f) => f (Index m, IxValue m) -> m #

helper for hashmap, in case we want another kind of map ..

ikeys :: (Eq k, Hashable k) => HashMap k v -> HashSet k #

isingleton :: (Monoid b, At b) => Index b -> IxValue b -> b #

ifromListWith :: (Monoid m, At m, Foldable f) => (IxValue m -> IxValue m -> IxValue m) -> f (Index m, IxValue m) -> m #

iunionWith :: (Hashable k, Eq k) => (v -> v -> v) -> HashMap k v -> HashMap k v -> HashMap k v #

iinsertWith :: At m => (IxValue m -> IxValue m -> IxValue m) -> Index m -> IxValue m -> m -> m #

re-export