Switch back to pretty style

This commit is contained in:
Michael Snoyman 2017-12-10 11:49:19 +02:00
parent 66919e1e14
commit e6fe53feb5
No known key found for this signature in database
GPG Key ID: A048E8C057E86876

View File

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