Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Editor a = Editor {
- editorTidings :: Tidings a
- editorElement :: Element
- edited :: Editor a -> Event a
- contents :: Editor a -> Behavior a
- (|*|) :: UI (Editor (b -> a)) -> UI (Editor b) -> UI (Editor a)
- (|*) :: UI (Editor a) -> UI Element -> UI (Editor a)
- (*|) :: UI Element -> UI (Editor a) -> UI (Editor a)
- (-*-) :: UI (Editor (b -> a)) -> UI (Editor b) -> UI (Editor a)
- (-*) :: UI (Editor a) -> UI Element -> UI (Editor a)
- (*-) :: UI Element -> UI (Editor a) -> UI (Editor a)
- editorReadShow :: (Read a, Show a) => Behavior (Maybe a) -> UI (Editor (Maybe a))
- editorEnumBounded :: (Bounded a, Enum a, Ord a, Show a) => Behavior (a -> UI Element) -> Behavior (Maybe a) -> UI (Editor (Maybe a))
- withDefault :: EditorFactory (Maybe a) (Maybe b) -> b -> EditorFactory a b
Editors
Editor | |
|
Editor compoosition
(|*|) :: UI (Editor (b -> a)) -> UI (Editor b) -> UI (Editor a) infixl 4 Source #
Left-right editor composition
(|*) :: UI (Editor a) -> UI Element -> UI (Editor a) infixl 5 Source #
Left-right composition of an element with a editor
(*|) :: UI Element -> UI (Editor a) -> UI (Editor a) infixl 5 Source #
Left-right composition of an element with a editor
(-*-) :: UI (Editor (b -> a)) -> UI (Editor b) -> UI (Editor a) infixl 4 Source #
Top-down editor composition
(-*) :: UI (Editor a) -> UI Element -> UI (Editor a) infixl 5 Source #
Top-down composition of an element with a editor
(*-) :: UI Element -> UI (Editor a) -> UI (Editor a) infixl 5 Source #
Top-down composition of an element with a editor
Editor constructors
editorEnumBounded :: (Bounded a, Enum a, Ord a, Show a) => Behavior (a -> UI Element) -> Behavior (Maybe a) -> UI (Editor (Maybe a)) Source #
withDefault :: EditorFactory (Maybe a) (Maybe b) -> b -> EditorFactory a b Source #