on develop help sign in
Add stub instance for IsXhrPayload File
commit8890bdcf0c3525f75ea9f75e2729b50542c3e2b6 authorRyan Trinkle <ryan.trinkle@gmail.com> dateMon 5 Oct 2015, 01:05 (11 years ago) parentcbc09e3
1 file changed+4
src-ghc/Reflex/Dom/Xhr/Foreign.hs+4
src-ghc/Reflex/Dom/Xhr/Foreign.hs+4
@@ -11,6 +11,7 @@ import Graphics.UI.Gtk.WebKit.JavaScriptCore.JSObjectRef
1111import Graphics.UI.Gtk.WebKit.JavaScriptCore.JSStringRef
1212import Graphics.UI.Gtk.WebKit.JavaScriptCore.JSValueRef
1313import Graphics.UI.Gtk.WebKit.JavaScriptCore.WebFrame
14+import GHCJS.DOM.File
1415
1516data XMLHttpRequest
1617 = XMLHttpRequest { xhrValue :: JSValueRef
@@ -105,6 +106,9 @@ instance IsXhrPayload () where
105106instance IsXhrPayload String where
106107 xmlHttpRequestSend xhr = xmlHttpRequestSendPayload xhr . Just
107108
109+instance IsXhrPayload File where
110+ xmlHttpRequestSend = error "xmlHttpRequestSend{File}: not implemented"
111+
108112xmlHttpRequestSendPayload :: XMLHttpRequest -> Maybe String -> IO ()
109113xmlHttpRequestSendPayload xhr payload = do
110114 let c = xhrContext xhr