Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
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 #