Module

Oak

Package
purescript-oak
Repository
ehrenmurdick/purescript-oak

#App Source

data App msg model

#createApp Source

createApp :: forall model msg. { init :: model, next :: msg -> model -> (msg -> Effect Unit) -> Effect Unit, update :: msg -> model -> model, view :: model -> View msg } -> App msg model

createApp takes a record with a description of your Oak app. It has a few parts:

init:

the inital model state.

view:

Maps the current model to an html view.

next:

This function maps a message and model to a command. For example, for sending an Http request when a user clicks a button. next would be called with the button click message and would return an Oak.Cmd that will execute the request.

update:

Takes an incoming message, and the previous model state, and returns the new model state.

#runApp Source

runApp :: forall model msg. App msg model -> Maybe msg -> Effect (Array Node)

Kicks off the running app, and returns an effect containing the root node of the app, which can be used to embed the application. See the main function of the example app in the readme.

#unwrapApp Source

unwrapApp :: forall model msg. App msg model -> { init :: model, next :: msg -> model -> (msg -> Effect Unit) -> Effect Unit, update :: msg -> model -> model, view :: model -> View msg }

Re-exports from Data.Either

#Either Source

data Either a b

The Either type is used to represent a choice between two types of value.

A common use case for Either is error handling, where Left is used to carry an error value and Right is used to carry a success value.

Constructors

Instances

  • Functor (Either a)

    The Functor instance allows functions to transform the contents of a Right with the <$> operator:

    f <$> Right x == Right (f x)
    

    Left values are untouched:

    f <$> Left y == Left y
    
  • FunctorWithIndex Unit (Either a)
  • Invariant (Either a)
  • Bifunctor Either
  • Apply (Either e)

    The Apply instance allows functions contained within a Right to transform a value contained within a Right using the (<*>) operator:

    Right f <*> Right x == Right (f x)
    

    Left values are left untouched:

    Left f <*> Right x == Left x
    Right f <*> Left y == Left y
    

    Combining Functor's <$> with Apply's <*> can be used to transform a pure function to take Either-typed arguments so f :: a -> b -> c becomes f :: Either l a -> Either l b -> Either l c:

    f <$> Right x <*> Right y == Right (f x y)
    

    The Left-preserving behaviour of both operators means the result of an expression like the above but where any one of the values is Left means the whole result becomes Left also, taking the first Left value found:

    f <$> Left x <*> Right y == Left x
    f <$> Right x <*> Left y == Left y
    f <$> Left x <*> Left y == Left x
    
  • Applicative (Either e)

    The Applicative instance enables lifting of values into Either with the pure function:

    pure x :: Either _ _ == Right x
    

    Combining Functor's <$> with Apply's <*> and Applicative's pure can be used to pass a mixture of Either and non-Either typed values to a function that does not usually expect them, by using pure for any value that is not already Either typed:

    f <$> Right x <*> pure y == Right (f x y)
    

    Even though pure = Right it is recommended to use pure in situations like this as it allows the choice of Applicative to be changed later without having to go through and replace Right with a new constructor.

  • Alt (Either e)

    The Alt instance allows for a choice to be made between two Either values with the <|> operator, where the first Right encountered is taken.

    Right x <|> Right y == Right x
    Left x <|> Right y == Right y
    Left x <|> Left y == Left y
    
  • Bind (Either e)

    The Bind instance allows sequencing of Either values and functions that return an Either by using the >>= operator:

    Left x >>= f = Left x
    Right x >>= f = f x
    
  • Monad (Either e)

    The Monad instance guarantees that there are both Applicative and Bind instances for Either. This also enables the do syntactic sugar:

    do
      x' <- x
      y' <- y
      pure (f x' y')
    

    Which is equivalent to:

    x >>= (\x' -> y >>= (\y' -> pure (f x' y')))
    
  • Extend (Either e)

    The Extend instance allows sequencing of Either values and functions that accept an Either and return a non-Either result using the <<= operator.

    f <<= Left x = Left x
    f <<= Right x = Right (f (Right x))
    
  • (Show a, Show b) => Show (Either a b)

    The Show instance allows Either values to be rendered as a string with show whenever there is an Show instance for both type the Either can contain.

  • (Eq a, Eq b) => Eq (Either a b)

    The Eq instance allows Either values to be checked for equality with == and inequality with /= whenever there is an Eq instance for both types the Either can contain.

  • (Eq a) => Eq1 (Either a)
  • (Ord a, Ord b) => Ord (Either a b)

    The Ord instance allows Either values to be compared with compare, >, >=, < and <= whenever there is an Ord instance for both types the Either can contain.

    Any Left value is considered to be less than a Right value.

  • (Ord a) => Ord1 (Either a)
  • (Bounded a, Bounded b) => Bounded (Either a b)
  • Foldable (Either a)
  • FoldableWithIndex Unit (Either a)
  • Bifoldable Either
  • Traversable (Either a)
  • TraversableWithIndex Unit (Either a)
  • Bitraversable Either
  • (Semigroup b) => Semigroup (Either a b)

#note' Source

note' :: forall b a. (Unit -> a) -> Maybe b -> Either a b

Similar to note, but for use in cases where the default value may be expensive to compute.

note' (\_ -> "default") Nothing = Left "default"
note' (\_ -> "default") (Just 1) = Right 1

#note Source

note :: forall b a. a -> Maybe b -> Either a b

Takes a default and a Maybe value, if the value is a Just, turn it into a Right, if the value is a Nothing use the provided default as a Left

note "default" Nothing = Left "default"
note "default" (Just 1) = Right 1

#isRight Source

isRight :: forall b a. Either a b -> Boolean

Returns true when the Either value was constructed with Right.

#isLeft Source

isLeft :: forall b a. Either a b -> Boolean

Returns true when the Either value was constructed with Left.

#hush Source

hush :: forall b a. Either a b -> Maybe b

Turns an Either into a Maybe, by throwing eventual Left values away and converting them into Nothing. Right values get turned into Justs.

hush (Left "ParseError") = Nothing
hush (Right 42) = Just 42

#fromRight Source

fromRight :: forall b a. Partial => Either a b -> b

A partial function that extracts the value from the Right data constructor. Passing a Left to fromRight will throw an error at runtime.

#fromLeft Source

fromLeft :: forall b a. Partial => Either a b -> a

A partial function that extracts the value from the Left data constructor. Passing a Right to fromLeft will throw an error at runtime.

#either Source

either :: forall c b a. (a -> c) -> (b -> c) -> Either a b -> c

Takes two functions and an Either value, if the value is a Left the inner value is applied to the first function, if the value is a Right the inner value is applied to the second function.

either f g (Left x) == f x
either f g (Right y) == g y

#choose Source

choose :: forall b a m. Alt m => m a -> m b -> m (Either a b)

Combine two alternatives.

Re-exports from Data.Maybe

#Maybe Source

data Maybe a

The Maybe type is used to represent optional values and can be seen as something like a type-safe null, where Nothing is null and Just x is the non-null value x.

Constructors

Instances

  • Functor Maybe

    The Functor instance allows functions to transform the contents of a Just with the <$> operator:

    f <$> Just x == Just (f x)
    

    Nothing values are left untouched:

    f <$> Nothing == Nothing
    
  • Apply Maybe

    The Apply instance allows functions contained within a Just to transform a value contained within a Just using the apply operator:

    Just f <*> Just x == Just (f x)
    

    Nothing values are left untouched:

    Just f <*> Nothing == Nothing
    Nothing <*> Just x == Nothing
    

    Combining Functor's <$> with Apply's <*> can be used transform a pure function to take Maybe-typed arguments so f :: a -> b -> c becomes f :: Maybe a -> Maybe b -> Maybe c:

    f <$> Just x <*> Just y == Just (f x y)
    

    The Nothing-preserving behaviour of both operators means the result of an expression like the above but where any one of the values is Nothing means the whole result becomes Nothing also:

    f <$> Nothing <*> Just y == Nothing
    f <$> Just x <*> Nothing == Nothing
    f <$> Nothing <*> Nothing == Nothing
    
  • Applicative Maybe

    The Applicative instance enables lifting of values into Maybe with the pure function:

    pure x :: Maybe _ == Just x
    

    Combining Functor's <$> with Apply's <*> and Applicative's pure can be used to pass a mixture of Maybe and non-Maybe typed values to a function that does not usually expect them, by using pure for any value that is not already Maybe typed:

    f <$> Just x <*> pure y == Just (f x y)
    

    Even though pure = Just it is recommended to use pure in situations like this as it allows the choice of Applicative to be changed later without having to go through and replace Just with a new constructor.

  • Alt Maybe

    The Alt instance allows for a choice to be made between two Maybe values with the <|> operator, where the first Just encountered is taken.

    Just x <|> Just y == Just x
    Nothing <|> Just y == Just y
    Nothing <|> Nothing == Nothing
    
  • Plus Maybe

    The Plus instance provides a default Maybe value:

    empty :: Maybe _ == Nothing
    
  • Alternative Maybe

    The Alternative instance guarantees that there are both Applicative and Plus instances for Maybe.

  • Bind Maybe

    The Bind instance allows sequencing of Maybe values and functions that return a Maybe by using the >>= operator:

    Just x >>= f = f x
    Nothing >>= f = Nothing
    
  • Monad Maybe

    The Monad instance guarantees that there are both Applicative and Bind instances for Maybe. This also enables the do syntactic sugar:

    do
      x' <- x
      y' <- y
      pure (f x' y')
    

    Which is equivalent to:

    x >>= (\x' -> y >>= (\y' -> pure (f x' y')))
    
  • MonadZero Maybe
  • Extend Maybe

    The Extend instance allows sequencing of Maybe values and functions that accept a Maybe a and return a non-Maybe result using the <<= operator.

    f <<= Nothing = Nothing
    f <<= x = Just (f x)
    
  • Invariant Maybe
  • (Semigroup a) => Semigroup (Maybe a)

    The Semigroup instance enables use of the operator <> on Maybe values whenever there is a Semigroup instance for the type the Maybe contains. The exact behaviour of <> depends on the "inner" Semigroup instance, but generally captures the notion of appending or combining things.

    Just x <> Just y = Just (x <> y)
    Just x <> Nothing = Just x
    Nothing <> Just y = Just y
    Nothing <> Nothing = Nothing
    
  • (Semigroup a) => Monoid (Maybe a)
  • (Eq a) => Eq (Maybe a)

    The Eq instance allows Maybe values to be checked for equality with == and inequality with /= whenever there is an Eq instance for the type the Maybe contains.

  • Eq1 Maybe
  • (Ord a) => Ord (Maybe a)

    The Ord instance allows Maybe values to be compared with compare, >, >=, < and <= whenever there is an Ord instance for the type the Maybe contains.

    Nothing is considered to be less than any Just value.

  • Ord1 Maybe
  • (Bounded a) => Bounded (Maybe a)
  • (Show a) => Show (Maybe a)

    The Show instance allows Maybe values to be rendered as a string with show whenever there is an Show instance for the type the Maybe contains.

#fromJust Source

fromJust :: forall a. Partial => Maybe a -> a

A partial function that extracts the value from the Just data constructor. Passing Nothing to fromJust will throw an error at runtime.

Re-exports from Oak.Document

#Node Source

data Node :: Type

#Element Source

data Element :: Type

Re-exports from Oak.Html

#View Source

type View msg = Builder (Array (Html msg)) Unit

#T Source

data T a b

Constructors

  • T a b

#Html Source

data Html msg

Constructors

Instances

#Builder Source

data Builder st a

Constructors

Instances

#wbr Source

wbr :: forall msg. Array (Attribute msg) -> View msg -> View msg

#video Source

video :: forall msg. Array (Attribute msg) -> View msg -> View msg

#var Source

var :: forall msg. Array (Attribute msg) -> View msg -> View msg

#ul Source

ul :: forall msg. Array (Attribute msg) -> View msg -> View msg

#u Source

u :: forall msg. Array (Attribute msg) -> View msg -> View msg

#tt Source

tt :: forall msg. Array (Attribute msg) -> View msg -> View msg

#track Source

track :: forall msg. Array (Attribute msg) -> View msg -> View msg

#tr Source

tr :: forall msg. Array (Attribute msg) -> View msg -> View msg

#time Source

time :: forall msg. Array (Attribute msg) -> View msg -> View msg

#thead Source

thead :: forall msg. Array (Attribute msg) -> View msg -> View msg

#th Source

th :: forall msg. Array (Attribute msg) -> View msg -> View msg

#tfoot Source

tfoot :: forall msg. Array (Attribute msg) -> View msg -> View msg

#textarea Source

textarea :: forall msg. Array (Attribute msg) -> View msg -> View msg

#text Source

text :: forall msg v. Present v => v -> View msg

#template Source

template :: forall msg. Array (Attribute msg) -> View msg -> View msg

#td Source

td :: forall msg. Array (Attribute msg) -> View msg -> View msg

#tbody Source

tbody :: forall msg. Array (Attribute msg) -> View msg -> View msg

#table Source

table :: forall msg. Array (Attribute msg) -> View msg -> View msg

#svg Source

svg :: forall msg. Array (Attribute msg) -> View msg -> View msg

#sup Source

sup :: forall msg. Array (Attribute msg) -> View msg -> View msg

#summary Source

summary :: forall msg. Array (Attribute msg) -> View msg -> View msg

#sub Source

sub :: forall msg. Array (Attribute msg) -> View msg -> View msg

#strong Source

strong :: forall msg. Array (Attribute msg) -> View msg -> View msg

#strike Source

strike :: forall msg. Array (Attribute msg) -> View msg -> View msg

#span Source

span :: forall msg. Array (Attribute msg) -> View msg -> View msg

#source Source

source :: forall msg. Array (Attribute msg) -> View msg -> View msg

#small Source

small :: forall msg. Array (Attribute msg) -> View msg -> View msg

#select Source

select :: forall msg. Array (Attribute msg) -> View msg -> View msg

#section Source

section :: forall msg. Array (Attribute msg) -> View msg -> View msg

#samp Source

samp :: forall msg. Array (Attribute msg) -> View msg -> View msg

#s Source

s :: forall msg. Array (Attribute msg) -> View msg -> View msg

#runBuilder Source

runBuilder :: forall msg. View msg -> Array (Html msg)

#ruby Source

ruby :: forall msg. Array (Attribute msg) -> View msg -> View msg

#rt Source

rt :: forall msg. Array (Attribute msg) -> View msg -> View msg

#rp Source

rp :: forall msg. Array (Attribute msg) -> View msg -> View msg

#q Source

q :: forall msg. Array (Attribute msg) -> View msg -> View msg

#putBuilder Source

putBuilder :: forall st. st -> Builder st Unit

#progress Source

progress :: forall msg. Array (Attribute msg) -> View msg -> View msg

#pre Source

pre :: forall msg. Array (Attribute msg) -> View msg -> View msg

#picture Source

picture :: forall msg. Array (Attribute msg) -> View msg -> View msg

#p Source

p :: forall msg. Array (Attribute msg) -> View msg -> View msg

#output Source

output :: forall msg. Array (Attribute msg) -> View msg -> View msg

#option Source

option :: forall msg. Array (Attribute msg) -> View msg -> View msg

#optgroup Source

optgroup :: forall msg. Array (Attribute msg) -> View msg -> View msg

#ol Source

ol :: forall msg. Array (Attribute msg) -> View msg -> View msg

#nav Source

nav :: forall msg. Array (Attribute msg) -> View msg -> View msg

#mkTagFn Source

mkTagFn :: forall msg. String -> Array (Attribute msg) -> View msg -> View msg

#meter Source

meter :: forall msg. Array (Attribute msg) -> View msg -> View msg

#menuitem Source

menuitem :: forall msg. Array (Attribute msg) -> View msg -> View msg

#menu Source

menu :: forall msg. Array (Attribute msg) -> View msg -> View msg

#mark Source

mark :: forall msg. Array (Attribute msg) -> View msg -> View msg

#map_ Source

map_ :: forall msg. Array (Attribute msg) -> View msg -> View msg

#mapMsg Source

mapMsg :: forall b a. (a -> b) -> View a -> View b

#main Source

main :: forall msg. Array (Attribute msg) -> View msg -> View msg

#li Source

li :: forall msg. Array (Attribute msg) -> View msg -> View msg

#legend Source

legend :: forall msg. Array (Attribute msg) -> View msg -> View msg

#label Source

label :: forall msg. Array (Attribute msg) -> View msg -> View msg

#kbd Source

kbd :: forall msg. Array (Attribute msg) -> View msg -> View msg

#ins Source

ins :: forall msg. Array (Attribute msg) -> View msg -> View msg

#input Source

input :: forall msg. Array (Attribute msg) -> View msg -> View msg

#img Source

img :: forall msg. Array (Attribute msg) -> View msg -> View msg

#i Source

i :: forall msg. Array (Attribute msg) -> View msg -> View msg

#hr Source

hr :: forall msg. Array (Attribute msg) -> View msg -> View msg

#header Source

header :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h6 Source

h6 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h5 Source

h5 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h4 Source

h4 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h3 Source

h3 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h2 Source

h2 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#h1 Source

h1 :: forall msg. Array (Attribute msg) -> View msg -> View msg

#getBuilder Source

getBuilder :: forall st. Builder st st

#form Source

form :: forall msg. Array (Attribute msg) -> View msg -> View msg

#footer Source

footer :: forall msg. Array (Attribute msg) -> View msg -> View msg

#font Source

font :: forall msg. Array (Attribute msg) -> View msg -> View msg

#figure Source

figure :: forall msg. Array (Attribute msg) -> View msg -> View msg

#figcaption Source

figcaption :: forall msg. Array (Attribute msg) -> View msg -> View msg

#fieldset Source

fieldset :: forall msg. Array (Attribute msg) -> View msg -> View msg

#empty Source

empty :: forall msg. View msg

#em Source

em :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dt Source

dt :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dl Source

dl :: forall msg. Array (Attribute msg) -> View msg -> View msg

#div Source

div :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dir Source

dir :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dialog Source

dialog :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dfn Source

dfn :: forall msg. Array (Attribute msg) -> View msg -> View msg

#details Source

details :: forall msg. Array (Attribute msg) -> View msg -> View msg

#del Source

del :: forall msg. Array (Attribute msg) -> View msg -> View msg

#dd Source

dd :: forall msg. Array (Attribute msg) -> View msg -> View msg

#datalist Source

datalist :: forall msg. Array (Attribute msg) -> View msg -> View msg

#data_ Source

data_ :: forall msg. Array (Attribute msg) -> View msg -> View msg

#colgroup Source

colgroup :: forall msg. Array (Attribute msg) -> View msg -> View msg

#col Source

col :: forall msg. Array (Attribute msg) -> View msg -> View msg

#code Source

code :: forall msg. Array (Attribute msg) -> View msg -> View msg

#cite Source

cite :: forall msg. Array (Attribute msg) -> View msg -> View msg

#center Source

center :: forall msg. Array (Attribute msg) -> View msg -> View msg

#caption Source

caption :: forall msg. Array (Attribute msg) -> View msg -> View msg

#canvas Source

canvas :: forall msg. Array (Attribute msg) -> View msg -> View msg

#button Source

button :: forall msg. Array (Attribute msg) -> View msg -> View msg

#br Source

br :: forall msg. Array (Attribute msg) -> View msg -> View msg

#blockquote Source

blockquote :: forall msg. Array (Attribute msg) -> View msg -> View msg

#big Source

big :: forall msg. Array (Attribute msg) -> View msg -> View msg

#bdo Source

bdo :: forall msg. Array (Attribute msg) -> View msg -> View msg

#bdi Source

bdi :: forall msg. Array (Attribute msg) -> View msg -> View msg

#b Source

b :: forall msg. Array (Attribute msg) -> View msg -> View msg

#audio Source

audio :: forall msg. Array (Attribute msg) -> View msg -> View msg

#aside Source

aside :: forall msg. Array (Attribute msg) -> View msg -> View msg

#article Source

article :: forall msg. Array (Attribute msg) -> View msg -> View msg

#area Source

area :: forall msg. Array (Attribute msg) -> View msg -> View msg

#address Source

address :: forall msg. Array (Attribute msg) -> View msg -> View msg

#abbr Source

abbr :: forall msg. Array (Attribute msg) -> View msg -> View msg

#a Source

a :: forall msg. Array (Attribute msg) -> View msg -> View msg

Re-exports from Oak.Html.Events

#onWheel Source

onWheel :: forall msg. msg -> Attribute msg

#onWaiting Source

onWaiting :: forall msg. msg -> Attribute msg

#onVolumechange Source

onVolumechange :: forall msg. msg -> Attribute msg

#onUnload Source

onUnload :: forall msg. msg -> Attribute msg

#onToggle Source

onToggle :: forall msg. msg -> Attribute msg

#onTimeupdate Source

onTimeupdate :: forall msg. msg -> Attribute msg

#onSuspend Source

onSuspend :: forall msg. msg -> Attribute msg

#onSubmit Source

onSubmit :: forall msg. msg -> Attribute msg

#onStorage Source

onStorage :: forall msg. msg -> Attribute msg

#onStalled Source

onStalled :: forall msg. msg -> Attribute msg

#onSelect Source

onSelect :: forall msg. msg -> Attribute msg

#onSeeking Source

onSeeking :: forall msg. msg -> Attribute msg

#onSeeked Source

onSeeked :: forall msg. msg -> Attribute msg

#onSearch Source

onSearch :: forall msg. msg -> Attribute msg

#onScroll Source

onScroll :: forall msg. msg -> Attribute msg

#onResize Source

onResize :: forall msg. msg -> Attribute msg

#onReset Source

onReset :: forall msg. msg -> Attribute msg

#onRatechange Source

onRatechange :: forall msg. msg -> Attribute msg

#onProgress Source

onProgress :: forall msg. msg -> Attribute msg

#onPopstate Source

onPopstate :: forall msg. msg -> Attribute msg

#onPlaying Source

onPlaying :: forall msg. msg -> Attribute msg

#onPlay Source

onPlay :: forall msg. msg -> Attribute msg

#onPause Source

onPause :: forall msg. msg -> Attribute msg

#onPaste Source

onPaste :: forall msg. msg -> Attribute msg

#onPageshow Source

onPageshow :: forall msg. msg -> Attribute msg

#onPagehide Source

onPagehide :: forall msg. msg -> Attribute msg

#onOnline Source

onOnline :: forall msg. msg -> Attribute msg

#onOffline Source

onOffline :: forall msg. msg -> Attribute msg

#onMousewheel Source

onMousewheel :: forall msg. msg -> Attribute msg

#onMouseup Source

onMouseup :: forall msg. msg -> Attribute msg

#onMouseover Source

onMouseover :: forall msg. msg -> Attribute msg

#onMouseout Source

onMouseout :: forall msg. msg -> Attribute msg

#onMousemove Source

onMousemove :: forall msg. msg -> Attribute msg

#onMousedown Source

onMousedown :: forall msg. msg -> Attribute msg

#onLoadstart Source

onLoadstart :: forall msg. msg -> Attribute msg

#onLoadedmetadata Source

onLoadedmetadata :: forall msg. msg -> Attribute msg

#onLoadeddata Source

onLoadeddata :: forall msg. msg -> Attribute msg

#onLoad Source

onLoad :: forall msg. msg -> Attribute msg

#onKeyup Source

onKeyup :: forall msg. (Int -> msg) -> Attribute msg

#onKeypress Source

onKeypress :: forall msg. (Int -> msg) -> Attribute msg

#onKeydown Source

onKeydown :: forall msg. (Int -> msg) -> Attribute msg

#onInvalid Source

onInvalid :: forall msg. msg -> Attribute msg

#onInput Source

onInput :: forall msg. (String -> msg) -> Attribute msg

#onHashchange Source

onHashchange :: forall msg. msg -> Attribute msg

#onFocus Source

onFocus :: forall msg. msg -> Attribute msg

#onError Source

onError :: forall msg. msg -> Attribute msg

#onEnded Source

onEnded :: forall msg. msg -> Attribute msg

#onEmptied Source

onEmptied :: forall msg. msg -> Attribute msg

#onDurationchange Source

onDurationchange :: forall msg. msg -> Attribute msg

#onDrop Source

onDrop :: forall msg. msg -> Attribute msg

#onDragstart Source

onDragstart :: forall msg. msg -> Attribute msg

#onDragover Source

onDragover :: forall msg. msg -> Attribute msg

#onDragleave Source

onDragleave :: forall msg. msg -> Attribute msg

#onDragenter Source

onDragenter :: forall msg. msg -> Attribute msg

#onDragend Source

onDragend :: forall msg. msg -> Attribute msg

#onDrag Source

onDrag :: forall msg. msg -> Attribute msg

#onDblclick Source

onDblclick :: forall msg. msg -> Attribute msg

#onCut Source

onCut :: forall msg. msg -> Attribute msg

#onCuechange Source

onCuechange :: forall msg. msg -> Attribute msg

#onCopy Source

onCopy :: forall msg. msg -> Attribute msg

#onContextmenu Source

onContextmenu :: forall msg. msg -> Attribute msg

#onClick Source

onClick :: forall msg. msg -> Attribute msg

#onChange Source

onChange :: forall msg. msg -> Attribute msg

#onCanplaythrough Source

onCanplaythrough :: forall msg. msg -> Attribute msg

#onCanplay Source

onCanplay :: forall msg. msg -> Attribute msg

#onBlur Source

onBlur :: forall msg. msg -> Attribute msg

#onBeforeunload Source

onBeforeunload :: forall msg. msg -> Attribute msg

#onBeforeprint Source

onBeforeprint :: forall msg. msg -> Attribute msg

#onAfterprint Source

onAfterprint :: forall msg. msg -> Attribute msg

#onAbort Source

onAbort :: forall msg. msg -> Attribute msg