Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 863c47a

Browse files
committed
Merge pull request #28 from anttih/fix-1
Add missing Document parameter to a few foreign type signatures
2 parents 521cab4 + 7962d5c commit 863c47a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/DOM/Node/Document.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ createDocumentFragment :: forall eff. Document -> Eff (dom :: DOM | eff) Documen
8787
#### `createTextNode`
8888

8989
``` purescript
90-
createTextNode :: forall eff. String -> Eff (dom :: DOM | eff) Text
90+
createTextNode :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Text
9191
```
9292

9393
#### `createComment`
9494

9595
``` purescript
96-
createComment :: forall eff. String -> Eff (dom :: DOM | eff) Comment
96+
createComment :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Comment
9797
```
9898

9999
#### `createProcessingInstruction`
100100

101101
``` purescript
102-
createProcessingInstruction :: forall eff. String -> String -> Eff (dom :: DOM | eff) ProcessingInstruction
102+
createProcessingInstruction :: forall eff. String -> String -> Document -> Eff (dom :: DOM | eff) ProcessingInstruction
103103
```
104104

105105
#### `importNode`

src/DOM/Node/Document.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ foreign import getElementsByClassName :: forall eff. String -> Document -> Eff (
2424
foreign import createElement :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Element
2525
foreign import createElementNS :: forall eff. Nullable String -> String -> Document -> Eff (dom :: DOM | eff) Element
2626
foreign import createDocumentFragment :: forall eff. Document -> Eff (dom :: DOM | eff) DocumentFragment
27-
foreign import createTextNode :: forall eff. String -> Eff (dom :: DOM | eff) Text
28-
foreign import createComment :: forall eff. String -> Eff (dom :: DOM | eff) Comment
29-
foreign import createProcessingInstruction :: forall eff. String -> String -> Eff (dom :: DOM | eff) ProcessingInstruction
27+
foreign import createTextNode :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Text
28+
foreign import createComment :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Comment
29+
foreign import createProcessingInstruction :: forall eff. String -> String -> Document -> Eff (dom :: DOM | eff) ProcessingInstruction
3030

3131
foreign import importNode :: forall eff. Node -> Boolean -> Document -> Eff (dom :: DOM | eff) Node
3232
foreign import adoptNode :: forall eff. Node -> Document -> Eff (dom :: DOM | eff) Node

0 commit comments

Comments
 (0)