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

Safe HaskellNone
LanguageHaskell98

XPrelude

Description

General specific prelude for language-puppet. Customization of the Protolude with extra specific utilities.

Synopsis

Documentation

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 #

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

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

isEmpty :: (Eq x, Monoid x) => x -> Bool #

dropInitialColons :: Text -> Text #

Remove the '::' token from a text if any.

logDebug :: Text -> IO () #

logInfo :: Text -> IO () #

logWarning :: Text -> IO () #

logError :: Text -> IO () #

logCritical :: Text -> IO () #

unwrapError :: Doc -> Either PrettyError a -> IO a #

In case of a Left error, print and exit immediately.

pplines :: Text -> Doc #

pretty print multiple lines of text.

ppline :: Text -> Doc #

pretty print a single line of text.

ppstring :: String -> Doc #

pretty print multiple lines of string.

pptext :: String -> Doc #

pretty print one line of string