Maintainer | Thomas Hallgren |
---|---|
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
- type E d = F d d
- type BF b = F b b
- type family fud1 >+< fud2
- (&) :: (a -> c) -> (b -> c) -> Either a b -> c
- bufferButtonF :: AttrValue -> F (Maybe ho) ho
- pickyReadShowF :: (Read a, Show a) => F a (Maybe a)
- filterSelectF :: Eq alt => Options alt -> SelectF alt
- hiddenDivF :: F t ho -> F t ho
- popupShellF :: String -> Maybe (Int, Int) -> F i o -> F i (i, o)
- listEditorF :: LE d -> ((SelectF Int >+< E d) >+< BF CRUD) -> E [d]
- data LE d = LE {}
- crudButtonsF :: BF CRUD
- data CRUD
- crudButtons :: [CRUD]
- persistentF :: (Show a, Read a) => String -> a -> E a -> E a
- undoRedoF :: E a -> E a
- editorF :: Editable a => E a
- class Show a => Editable a where
- editorF' :: a -> E a
- initial :: a
- listEditorF' :: [a] -> E [a]
- watchF :: (Show a, Show a1) => [Char] -> F a1 a -> F a1 a
- size :: Int -> Attribute
- enumAll :: (Bounded a, Enum a) => [a]
- flat3 :: ((t, t1), t2) -> (t, t1, t2)
- nest3 :: (t1, t2, t) -> ((t1, t2), t)
Types and operators
type family fud1 >+< fud2
The type of a tagged parallel composition of two fudgets
Augmented user interface elements
bufferButtonF :: AttrValue -> F (Maybe ho) ho
pickyReadShowF :: (Read a, Show a) => F a (Maybe a)
filterSelectF :: Eq alt => Options alt -> SelectF alt
Like dynSelectF
, but also lets the user filter the list (for easier
selections from long lists)
Popup Windows
hiddenDivF :: F t ho -> F t ho
List Editor
listEditorF :: LE d -> ((SelectF Int >+< E d) >+< BF CRUD) -> E [d]
Create a list editor from a combination of
- a fudget that shows the list and allows the user to select a list item
- a fudget for editing a selected list item
- buttons for creating, updating and deleting list items
crudButtonsF :: BF CRUD
crudButtons :: [CRUD]
Persistence
persistentF :: (Show a, Read a) => String -> a -> E a -> E a
Makes a fudget for editing some kind of input remember
the entered input between sessions (by using localStorageF
).
The first argument is a unique key.
Undo/Redo History
Editors
Other utilities
flat3 :: ((t, t1), t2) -> (t, t1, t2)
nest3 :: (t1, t2, t) -> ((t1, t2), t)