Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Tidings a
- rumors :: Tidings a -> Event a
- facts :: Tidings a -> Behavior a
- tidings :: Behavior a -> Event a -> Tidings a
- data TextEntry
- entry :: Behavior String -> UI TextEntry
- userText :: TextEntry -> Tidings String
- data ListBox a
- listBox :: forall a. Ord a => Behavior [a] -> Behavior (Maybe a) -> Behavior (a -> UI Element) -> UI (ListBox a)
- userSelection :: ListBox a -> Tidings (Maybe a)
Synopsis
Widgets are reusable building blocks for a graphical user interface. This module collects useful widgets that are designed to work with functional reactive programming (FRP).
For more details and information on how to write your own widgets, see the widget design guide.
Tidings
tidings :: Behavior a -> Event a -> Tidings a Source #
Smart constructor. Combine facts and rumors into Tidings
.
Widgets
Input widgets
Create a single-line text entry.