@@ -1,4 +1,4 @@
1−{-# LANGUAGE TemplateHaskell, GADTs, DeriveDataTypeable, FlexibleContexts, OverloadedStrings #-}
1+{-# LANGUAGE TemplateHaskell, GADTs, DeriveDataTypeable, DeriveFunctor, FlexibleContexts, OverloadedStrings #-}
2module Reflex.Dom.Xhr
2module Reflex.Dom.Xhr
3 ( XMLHttpRequest
3 ( XMLHttpRequest
4 , XhrRequest(..)
4 , XhrRequest(..)
@@ -80,7 +80,7 @@ data XhrRequest a
80 , _xhrRequest_url :: Text
80 , _xhrRequest_url :: Text
81 , _xhrRequest_config :: XhrRequestConfig a
81 , _xhrRequest_config :: XhrRequestConfig a
83− deriving (Show, Read, Eq, Ord, Typeable)
83+ deriving (Show, Read, Eq, Ord, Typeable, Functor)
85data XhrRequestConfig a
85data XhrRequestConfig a
86 = XhrRequestConfig { _xhrRequestConfig_headers :: Map Text Text
86 = XhrRequestConfig { _xhrRequestConfig_headers :: Map Text Text
@@ -89,7 +89,7 @@ data XhrRequestConfig a
89 , _xhrRequestConfig_responseType :: Maybe XhrResponseType
89 , _xhrRequestConfig_responseType :: Maybe XhrResponseType
90 , _xhrRequestConfig_sendData :: a
90 , _xhrRequestConfig_sendData :: a
92− deriving (Show, Read, Eq, Ord, Typeable)
92+ deriving (Show, Read, Eq, Ord, Typeable, Functor)
94data XhrResponse
94data XhrResponse
95 = XhrResponse { _xhrResponse_status :: Word
95 = XhrResponse { _xhrResponse_status :: Word
@@ -261,3 +261,4 @@ liftM concat $ mapM makeLenses
261 , ''XhrRequestConfig
261 , ''XhrRequestConfig
262 , ''XhrResponse
262 , ''XhrResponse