Revise filetype detect for json and yesod-htmls