Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Ui.Dump

Description

Support for testing the GUI.

There is a function dump, which emits a sexpr-like set of key-value pairs representing its current state. Tests can then check this dump for certain expected values.

Example input: key1 val1 key2 (subkey1 subval1)

Flattened output: [("key1", "val1"), ("key2.subkey1", "subval1")]

Documentation

type Dump = [(String, String)] Source #

newtype Tree Source #

Constructors

Tree [(String, Val)] 

Instances

Instances details
Show Tree Source # 
Instance details

Defined in Ui.Dump

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

data Val Source #

Constructors

Val String 
Sub Tree 

Instances

Instances details
Show Val Source # 
Instance details

Defined in Ui.Dump

Methods

showsPrec :: Int -> Val -> ShowS #

show :: Val -> String #

showList :: [Val] -> ShowS #