UISF-0.4.0.0: Library for Arrowized Graphical User Interfaces.

Safe HaskellNone
LanguageHaskell98

FRP.UISF.Examples.Crud

Synopsis

Documentation

type Database a = [a] Source

data NameEntry Source

Constructors

NameEntry 

deleteFromDB :: (a -> Bool) -> Int -> Database a -> Database a Source

updateDB :: (a -> Bool) -> Int -> a -> Database a -> Database a Source

crud :: IO () Source

This function will run the crud GUI with the default names.

main :: IO () Source

main = crud

crudUISF :: Database NameEntry -> UISF () () Source

This is the main function that creates the crud GUI. It takes an initial database of names as an argument. See notes below on the use of banana brackets and nested do blocks.