Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Ui.Dump

Description

Support for testing the GUI.

The GUI exports a dump function 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
Show Tree # 
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
Show Val # 
Instance details

Defined in Ui.Dump

Methods

showsPrec :: Int -> Val -> ShowS #

show :: Val -> String #

showList :: [Val] -> ShowS #