cfv
Copyright(c) Harley Eades 2026
Maintainerharley.eades@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Configuration.Cfv.AST

Description

The abstract syntax for CFV files.

Synopsis

Documentation

type VarName = Text Source #

A variables name.

type VarValue = Text Source #

A variables value.

type Binding = (VarName, Var) Source #

A variable binding: a name, attribute, and a value.

data Var Source #

A variable's final value (after any command has been run) together with its attribute.

The Show instance never prints a secret value, so a list of bindings can be logged safely:

[("name",Public "x"),("key",Secret ())]

Constructors

Var VarAttr VarValue 

Instances

Instances details
Show Var Source # 
Instance details

Defined in Configuration.Cfv.AST

Methods

showsPrec :: Int -> Var -> ShowS #

show :: Var -> String #

showList :: [Var] -> ShowS #

Eq Var Source # 
Instance details

Defined in Configuration.Cfv.AST

Methods

(==) :: Var -> Var -> Bool #

(/=) :: Var -> Var -> Bool #

data VarAttr Source #

Security level for variables.

Constructors

Public

The default; has no syntax.

Secret

Declared with a secret prefix.

Instances

Instances details
Show VarAttr Source # 
Instance details

Defined in Configuration.Cfv.AST

Eq VarAttr Source # 
Instance details

Defined in Configuration.Cfv.AST

Methods

(==) :: VarAttr -> VarAttr -> Bool #

(/=) :: VarAttr -> VarAttr -> Bool #

Ord VarAttr Source # 
Instance details

Defined in Configuration.Cfv.AST

varAttr :: Var -> VarAttr Source #

The variable's attribute.

revealVar :: Var -> Text Source #

The variable's value, secret or not.