Temporarily disable pretty styling

This commit is contained in:
Michael Snoyman 2017-12-08 10:49:30 +02:00
parent e054d25982
commit 75390181c1
No known key found for this signature in database
GPG Key ID: A048E8C057E86876

View File

@ -50,7 +50,9 @@ getHaddockR slug rest
addExtra t = [t]
req <- parseRequest $ unpack $ makeURL slug rest
(_, res) <- acquireResponse req >>= allocateAcquire
mstyle <- lookupGetParam "style"
-- mstyle <- lookupGetParam "style"
-- TODO: Uncomment line above. Restyling is really slow right now, still need to debug it.
let mstyle = Just ("plain" :: Text)
case mstyle of
Just "plain" -> respondSource "text/html; charset=utf-8"
$ responseBody res .| mapC (Chunk . toBuilder)