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 -> Html 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.

#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 -> Html msg }

#runApp Source

runApp :: forall model msg. App msg model -> Maybe msg -> Effect 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.

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)
  • 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)
  • (Eq a) => Eq1 (Either a)
  • (Ord a, Ord b) => Ord (Either a b)
  • (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)
  • Eq1 Maybe
  • (Ord a) => Ord (Maybe a)
  • 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 Effect

#Effect Source

data Effect :: Type -> Type

A native effect. The type parameter denotes the return type of running the effect, that is, an Effect Int is a possibly-effectful computation which eventually produces a value of the type Int when it finishes.

Instances

#whileE Source

whileE :: forall a. Effect Boolean -> Effect a -> Effect Unit

Loop while a condition is true.

whileE b m is effectful computation which runs the effectful computation b. If its result is true, it runs the effectful computation m and loops. If not, the computation ends.

#untilE Source

untilE :: Effect Boolean -> Effect Unit

Loop until a condition becomes true.

untilE b is an effectful computation which repeatedly runs the effectful computation b, until its return value is true.

#foreachE Source

foreachE :: forall a. Array a -> (a -> Effect Unit) -> Effect Unit

Loop over an array of values.

foreachE xs f runs the computation returned by the function f for each of the inputs xs.

#forE Source

forE :: Int -> Int -> (Int -> Effect Unit) -> Effect Unit

Loop over a consecutive collection of numbers.

forE lo hi f runs the computation returned by the function f for each of the inputs between lo (inclusive) and hi (exclusive).

Re-exports from Oak.Document

#Node Source

data Node :: Type

#Element Source

data Element :: Type

#appendChildNode Source

Re-exports from Oak.Html

#Html Source

data Html msg

Constructors

Instances

#wbr Source

wbr :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#video Source

video :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#var Source

var :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#ul Source

ul :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#u Source

u :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#tt Source

tt :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#track Source

track :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#tr Source

tr :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#time Source

time :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#thead Source

thead :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#th Source

th :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#tfoot Source

tfoot :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#textarea Source

textarea :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#text Source

text :: forall msg a. Present a => a -> Writer (Array (Html msg)) Unit

#template Source

template :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#td Source

td :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#tbody Source

tbody :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#table Source

table :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#svg Source

svg :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#sup Source

sup :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#summary Source

summary :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#sub Source

sub :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#strong Source

strong :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#strike Source

strike :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#span Source

span :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#source Source

source :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#small Source

small :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#select Source

select :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#section Source

section :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#samp Source

samp :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#s Source

s :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#ruby Source

ruby :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#rt Source

rt :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#rp Source

rp :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#root Source

root :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Html msg

#q Source

q :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#progress Source

progress :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#pre Source

pre :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#picture Source

picture :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#p Source

p :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#output Source

output :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#option Source

option :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#optgroup Source

optgroup :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#ol Source

ol :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#nav Source

nav :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#mkTagFn Source

mkTagFn :: forall msg. String -> Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#meter Source

meter :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#menuitem Source

menuitem :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#menu Source

menu :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#mark Source

mark :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#map_ Source

map_ :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#main Source

main :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#li Source

li :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#legend Source

legend :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#label Source

label :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#kbd Source

kbd :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#ins Source

ins :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#input Source

input :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#img Source

img :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#i Source

i :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#hr Source

hr :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#header Source

header :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h6 Source

h6 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h5 Source

h5 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h4 Source

h4 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h3 Source

h3 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h2 Source

h2 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#h1 Source

h1 :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#form Source

form :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#footer Source

footer :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#font Source

font :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#figure Source

figure :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#figcaption Source

figcaption :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#fieldset Source

fieldset :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#empty Source

empty :: forall msg. Writer (Array (Html msg)) Unit

#em Source

em :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dt Source

dt :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dl Source

dl :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#div Source

div :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dir Source

dir :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dialog Source

dialog :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dfn Source

dfn :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#details Source

details :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#del Source

del :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#dd Source

dd :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#datalist Source

datalist :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#data_ Source

data_ :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#colgroup Source

colgroup :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#col Source

col :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#code Source

code :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#cite Source

cite :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#center Source

center :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#caption Source

caption :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#canvas Source

canvas :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#button Source

button :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#br Source

br :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#blockquote Source

blockquote :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#big Source

big :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#bdo Source

bdo :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#bdi Source

bdi :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#b Source

b :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#audio Source

audio :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#aside Source

aside :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#article Source

article :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#area Source

area :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#address Source

address :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#abbr Source

abbr :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

#a Source

a :: forall msg. Array (Attribute msg) -> Writer (Array (Html msg)) Unit -> Writer (Array (Html msg)) Unit

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. (KeyPressEvent -> msg) -> Attribute msg

#onKeyup Source

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

#onKeypress' Source

onKeypress' :: forall msg. (KeyPressEvent -> msg) -> Attribute msg

#onKeypress Source

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

#onKeydown' Source

onKeydown' :: forall msg. (KeyPressEvent -> 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