{-# LANGUAGE OverloadedStrings #-}
module Miso.Native.X.Element.Svg
(
svgWith_
, module Miso.Native.X.Element.Svg.Event
, module Miso.Native.X.Element.Svg.Property
) where
import Miso.Native.X.Element (svg_)
import Miso.Native.X.Element.Svg.Event
import Miso.Native.X.Element.Svg.Property
import Miso.Types (Attribute, View, withModel, withProps, withContext)
svgWith_
:: [Attribute model action]
-> View context props model action
-> View context props model action
svgWith_ :: forall model action context props.
[Attribute model action]
-> View context props model action
-> View context props model action
svgWith_ [Attribute model action]
attrs View context props model action
content =
(context -> View context props model action)
-> View context props model action
forall context props model action.
(context -> View context props model action)
-> View context props model action
withContext ((context -> View context props model action)
-> View context props model action)
-> (context -> View context props model action)
-> View context props model action
forall a b. (a -> b) -> a -> b
$ \context
context -> (props -> View context props model action)
-> View context props model action
forall props context model action.
(props -> View context props model action)
-> View context props model action
withProps ((props -> View context props model action)
-> View context props model action)
-> (props -> View context props model action)
-> View context props model action
forall a b. (a -> b) -> a -> b
$ \props
props -> (model -> View context props model action)
-> View context props model action
forall model context props action.
(model -> View context props model action)
-> View context props model action
withModel ((model -> View context props model action)
-> View context props model action)
-> (model -> View context props model action)
-> View context props model action
forall a b. (a -> b) -> a -> b
$ \model
model ->
[Attribute model action]
-> [View context props model action]
-> View context props model action
forall model action context props.
[Attribute model action]
-> [View context props model action]
-> View context props model action
svg_ (context
-> props
-> model
-> View context props model action
-> Attribute model action
forall context props model action.
context
-> props
-> model
-> View context props model action
-> Attribute model action
content_ context
context props
props model
model View context props model action
content Attribute model action
-> [Attribute model action] -> [Attribute model action]
forall a. a -> [a] -> [a]
: [Attribute model action]
attrs) []