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

Safe HaskellNone
LanguageHaskell98

Puppet.Interpreter.Utils

Description

The module should not depend on the Interpreter module. It is an internal module and should not be used if expecting a stable API.

Synopsis

Documentation

initialState Source

Arguments

:: Facts 
-> Container Text

Server settings

-> InterpreterState 

extractPrism :: Doc -> Prism' a b -> a -> InterpreterMonad b Source

checkStrict Source

Arguments

:: Doc

The warning message.

-> Doc

The error message.

-> InterpreterMonad () 

Throws an error if we are in strict mode A warning in permissive mode

warn :: MonadWriter InterpreterWriter m => Doc -> m () Source

debug :: MonadWriter InterpreterWriter m => Doc -> m () Source

logWriter :: MonadWriter InterpreterWriter m => Priority -> Doc -> m () Source

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

dropInitialColons :: Text -> Text Source