Update Stackage.Database.Haddock

This commit is contained in:
Konstantin Zudov 2015-10-05 04:32:13 +03:00
parent a6217c50bc
commit 3a88c8835b
2 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@ module Stackage.Database.Haddock
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import qualified Documentation.Haddock.Parser as Haddock
import Documentation.Haddock.Types (DocH (..), Hyperlink (..), Picture (..), Header (..), Example (..))
import Documentation.Haddock.Types (DocH (..), Hyperlink (..), Picture (..), Header (..), Example (..), MetaDoc(..))
import ClassyPrelude.Conduit
import Text.Blaze.Html (Html, toHtml)
renderHaddock :: Text -> Html
renderHaddock = hToHtml . Haddock.toRegular . Haddock.parseParas . unpack
renderHaddock = hToHtml . Haddock.toRegular . _doc . Haddock.parseParas . unpack
-- | Convert a Haddock doc to HTML.
hToHtml :: DocH String String -> Html

View File

@ -150,7 +150,7 @@ library
, markdown >= 0.1.13
, formatting
, blaze-html
, haddock-library
, haddock-library >= 1.2.0
, async
, yesod-gitrepo >= 0.1.1
, hoogle