/
HTMLBodyElement.purs
52 lines (36 loc) · 1.66 KB
/
HTMLBodyElement.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module Web.HTML.HTMLBodyElement where
import Data.Maybe (Maybe)
import Unsafe.Coerce (unsafeCoerce)
import Web.DOM (ChildNode, Element, Node, NonDocumentTypeChildNode, ParentNode)
import Web.Event.EventTarget (EventTarget)
import Web.HTML.HTMLElement (HTMLElement)
import Web.Internal.FFI (unsafeReadProtoTagged)
foreign import data HTMLBodyElement :: Type
fromHTMLElement :: HTMLElement -> Maybe HTMLBodyElement
fromHTMLElement = unsafeReadProtoTagged "HTMLBodyElement"
fromElement :: Element -> Maybe HTMLBodyElement
fromElement = unsafeReadProtoTagged "HTMLBodyElement"
fromNode :: Node -> Maybe HTMLBodyElement
fromNode = unsafeReadProtoTagged "HTMLBodyElement"
fromChildNode :: ChildNode -> Maybe HTMLBodyElement
fromChildNode = unsafeReadProtoTagged "HTMLBodyElement"
fromNonDocumentTypeChildNode :: NonDocumentTypeChildNode -> Maybe HTMLBodyElement
fromNonDocumentTypeChildNode = unsafeReadProtoTagged "HTMLBodyElement"
fromParentNode :: ParentNode -> Maybe HTMLBodyElement
fromParentNode = unsafeReadProtoTagged "HTMLBodyElement"
fromEventTarget :: EventTarget -> Maybe HTMLBodyElement
fromEventTarget = unsafeReadProtoTagged "HTMLBodyElement"
toHTMLElement :: HTMLBodyElement -> HTMLElement
toHTMLElement = unsafeCoerce
toElement :: HTMLBodyElement -> Element
toElement = unsafeCoerce
toNode :: HTMLBodyElement -> Node
toNode = unsafeCoerce
toChildNode :: HTMLBodyElement -> ChildNode
toChildNode = unsafeCoerce
toNonDocumentTypeChildNode :: HTMLBodyElement -> NonDocumentTypeChildNode
toNonDocumentTypeChildNode = unsafeCoerce
toParentNode :: HTMLBodyElement -> ParentNode
toParentNode = unsafeCoerce
toEventTarget :: HTMLBodyElement -> EventTarget
toEventTarget = unsafeCoerce