@@ -130,13 +130,14 @@ data Req f = Req
130130 , _reqBody :: Maybe f
131131 , _reqReturnType :: Maybe f
132132 , _reqFuncName :: FunctionName
133+ , _reqBodyIsJSON :: Bool
133134 }
134135 deriving (Data, Eq, Show, Typeable)
135136
136137makeLenses ''Req
137138
138139defReq :: Req ftype
139−defReq = Req defUrl "GET" [] Nothing Nothing (FunctionName [])
140+defReq = Req defUrl "GET" [] Nothing Nothing (FunctionName []) True
140141
141142-- | 'HasForeignType' maps Haskell types with types in the target
142143-- language of your backend. For example, let's say you're