-Wall police

This commit is contained in:
Alp Mestanogullari 2014-12-09 15:39:41 +01:00
parent d760149ce0
commit c660b9cb0b

View file

@ -67,9 +67,9 @@ generateJS req = "\n" <>
reqheaders =
if null hs
then ""
else "\n , headers: { " ++ headersStr hs ++ " } }\n"
else "\n , headers: { " ++ headersStr ++ " } }\n"
where headersStr hs = intercalate ", " $ map headerStr hs
where headersStr = intercalate ", " $ map headerStr hs
headerStr hname = "\"" ++ hname ++ "\": header" ++ hname
fname = req ^. funcName