Use show instances for a shortcut

This commit is contained in:
Joe Nelson
2015-11-20 10:29:08 -08:00
parent d2d86b35c4
commit f54742186b
4 changed files with 17 additions and 21 deletions
+1 -4
View File
@@ -75,10 +75,7 @@ app dbStructure conf reqBody req =
let
-- TODO: blow up for Left values (there is a middleware that checks the headers)
contentType = either (const ApplicationJSON) id (iAccepts intent)
contentTypeS ct = case ct of
ApplicationJSON -> "application/json"
TextCSV -> "text/csv"
contentTypeH = (hContentType, contentTypeS contentType) in
contentTypeH = (hContentType, cs $ show contentType) in
case (iAction intent, iTarget intent, iPayload intent) of