mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Merge pull request #246 from fpco/pretty-again
Switch back to pretty style
This commit is contained in:
commit
a83629f09a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user