File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,24 @@ module Web.DOM.Text where
3
3
import Effect (Effect )
4
4
import Unsafe.Coerce (unsafeCoerce )
5
5
import Web.DOM.CharacterData (CharacterData )
6
+ import Web.DOM.ChildNode (ChildNode )
7
+ import Web.DOM.Internal.Types (Node )
8
+ import Web.DOM.NonDocumentTypeChildNode (NonDocumentTypeChildNode )
6
9
7
10
foreign import data Text :: Type
8
11
9
12
toCharacterData :: Text -> CharacterData
10
13
toCharacterData = unsafeCoerce
11
14
15
+ toChildNode :: Text -> ChildNode
16
+ toChildNode = unsafeCoerce
17
+
18
+ toNonDocumentTypeChildNode :: Text -> NonDocumentTypeChildNode
19
+ toNonDocumentTypeChildNode = unsafeCoerce
20
+
21
+ toNode :: Text -> Node
22
+ toNode = unsafeCoerce
23
+
12
24
foreign import splitText :: Int -> Text -> Effect Text
13
25
14
26
foreign import wholeText :: Text -> Effect String
You can’t perform that action at this time.
0 commit comments