From 7962d5c2b36f4f8dadbc165aef73d541cff7d043 Mon Sep 17 00:00:00 2001 From: Antti Holvikari Date: Sun, 22 Nov 2015 00:50:21 +0200 Subject: [PATCH] Add missing Document parameter to a few foreign type signatures --- docs/DOM/Node/Document.md | 6 +++--- src/DOM/Node/Document.purs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/DOM/Node/Document.md b/docs/DOM/Node/Document.md index 7207005..e95ef48 100644 --- a/docs/DOM/Node/Document.md +++ b/docs/DOM/Node/Document.md @@ -87,19 +87,19 @@ createDocumentFragment :: forall eff. Document -> Eff (dom :: DOM | eff) Documen #### `createTextNode` ``` purescript -createTextNode :: forall eff. String -> Eff (dom :: DOM | eff) Text +createTextNode :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Text ``` #### `createComment` ``` purescript -createComment :: forall eff. String -> Eff (dom :: DOM | eff) Comment +createComment :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Comment ``` #### `createProcessingInstruction` ``` purescript -createProcessingInstruction :: forall eff. String -> String -> Eff (dom :: DOM | eff) ProcessingInstruction +createProcessingInstruction :: forall eff. String -> String -> Document -> Eff (dom :: DOM | eff) ProcessingInstruction ``` #### `importNode` diff --git a/src/DOM/Node/Document.purs b/src/DOM/Node/Document.purs index 9cffc78..c065aac 100644 --- a/src/DOM/Node/Document.purs +++ b/src/DOM/Node/Document.purs @@ -24,9 +24,9 @@ foreign import getElementsByClassName :: forall eff. String -> Document -> Eff ( foreign import createElement :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Element foreign import createElementNS :: forall eff. Nullable String -> String -> Document -> Eff (dom :: DOM | eff) Element foreign import createDocumentFragment :: forall eff. Document -> Eff (dom :: DOM | eff) DocumentFragment -foreign import createTextNode :: forall eff. String -> Eff (dom :: DOM | eff) Text -foreign import createComment :: forall eff. String -> Eff (dom :: DOM | eff) Comment -foreign import createProcessingInstruction :: forall eff. String -> String -> Eff (dom :: DOM | eff) ProcessingInstruction +foreign import createTextNode :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Text +foreign import createComment :: forall eff. String -> Document -> Eff (dom :: DOM | eff) Comment +foreign import createProcessingInstruction :: forall eff. String -> String -> Document -> Eff (dom :: DOM | eff) ProcessingInstruction foreign import importNode :: forall eff. Node -> Boolean -> Document -> Eff (dom :: DOM | eff) Node foreign import adoptNode :: forall eff. Node -> Document -> Eff (dom :: DOM | eff) Node