Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

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 # 
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 # 
Instance details

Defined in Ui.Dump

Methods

showsPrec :: Int -> Val -> ShowS #

show :: Val -> String #

showList :: [Val] -> ShowS #