on develop help sign in
Merge pull request #87 from reflex-frp/sr-xhr-string-instance

Add IsXhrPayload instance for String under GHC

commitc40b25fd070762e207075f591832f817e5ad3d52 authorRyan Trinkle <ryan.trinkle@gmail.com> dateTue 23 Aug 2016, 01:17 (10 years ago) parentddce6f4988125a
1 file changed+3
src-ghc/Reflex/Dom/Xhr/Foreign.hs+3
src-ghc/Reflex/Dom/Xhr/Foreign.hs+3
@@ -40,6 +40,9 @@ instance IsXhrPayload () where
4040instance IsXhrPayload Text where
4141 xmlHttpRequestSend xhr = xmlHttpRequestSendPayload xhr . Just
4242
43+instance IsXhrPayload String where
44+ xmlHttpRequestSend xhr = xmlHttpRequestSendPayload xhr . Just . T.pack
45+
4346instance IsXhrPayload File where
4447 xmlHttpRequestSend = error "xmlHttpRequestSend{File}: not implemented"
4548