@@ -130,13 +130,14 @@ data Req f = Req
130 , _reqBody :: Maybe f
130 , _reqBody :: Maybe f
131 , _reqReturnType :: Maybe f
131 , _reqReturnType :: Maybe f
132 , _reqFuncName :: FunctionName
132 , _reqFuncName :: FunctionName
133+ , _reqBodyIsJSON :: Bool
134 deriving (Data, Eq, Show, Typeable)
135 deriving (Data, Eq, Show, Typeable)
136makeLenses ''Req
137makeLenses ''Req
138defReq :: Req ftype
139defReq :: Req ftype
139−defReq = Req defUrl "GET" [] Nothing Nothing (FunctionName [])
140+defReq = Req defUrl "GET" [] Nothing Nothing (FunctionName []) True
141-- | 'HasForeignType' maps Haskell types with types in the target
142-- | 'HasForeignType' maps Haskell types with types in the target
142-- language of your backend. For example, let's say you're
143-- language of your backend. For example, let's say you're