threepenny-editors-0.1.0.1: Composable algebraic editors

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.Threepenny.Editors

Contents

Synopsis

Editors

data Editor a Source #

Constructors

Editor 

Instances

Functor Editor Source # 

Methods

fmap :: (a -> b) -> Editor a -> Editor b #

(<$) :: a -> Editor b -> Editor a #

Widget (Editor a) Source # 

Methods

getElement :: Editor a -> Element #

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

withDefault :: EditorFactory (Maybe a) (Maybe b) -> b -> EditorFactory a b Source #