Disable custom Haddock style by default #278

This commit is contained in:
Michael Snoyman 2019-10-15 09:55:10 +03:00
parent 2701f186ca
commit ab8d383cd5
No known key found for this signature in database
GPG Key ID: 907EAE2F42B52046

View File

@ -38,7 +38,7 @@ getHaddockR snapName rest
case docType of
DocHtml -> do
mstyle <- lookupGetParam "style"
return ("text/html; charset=utf-8", mstyle == Just "plain")
return ("text/html; charset=utf-8", mstyle /= Just "stackage")
DocJson ->
return ("application/jsontml; charset=utf-8", True)
req <- parseRequest $ unpack $ makeURL snapName rest