mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-18 07:01:55 +01:00
Switch back to pretty style
This commit is contained in:
parent
66919e1e14
commit
e6fe53feb5
@ -36,12 +36,7 @@ getHaddockR slug rest
|
|||||||
]
|
]
|
||||||
req <- parseRequest $ unpack $ makeURL slug rest
|
req <- parseRequest $ unpack $ makeURL slug rest
|
||||||
(_, res) <- acquireResponse req >>= allocateAcquire
|
(_, 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 =
|
|
||||||
case mstyle' of
|
|
||||||
Just "pretty" -> Nothing
|
|
||||||
_ -> Just ("plain" :: Text)
|
|
||||||
case mstyle of
|
case mstyle of
|
||||||
Just "plain" -> respondSource "text/html; charset=utf-8"
|
Just "plain" -> respondSource "text/html; charset=utf-8"
|
||||||
$ responseBody res .| mapC (Chunk . toBuilder)
|
$ responseBody res .| mapC (Chunk . toBuilder)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user