Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

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 # 

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

data Val Source #

Constructors

Val String 
Sub Tree 

Instances

Show Val # 

Methods

showsPrec :: Int -> Val -> ShowS #

show :: Val -> String #

showList :: [Val] -> ShowS #