hdocs 0.3.0.1 → 0.4.0.0
raw patch · 2 files changed
+12/−12 lines, 2 filesdep ~aesondep ~basedep ~ghc
Dependency ranges changed: aeson, base, ghc, haddock, process, text
Files
- hdocs.cabal +11/−11
- src/HDocs/Base.hs +1/−1
hdocs.cabal view
@@ -1,5 +1,5 @@ name: hdocs -version: 0.3.0.1 +version: 0.4.0.0 synopsis: Haskell docs tool description: Tool and library to get docs for installed packages and source files. @@ -31,42 +31,42 @@ HDocs.Haddock HDocs.Module build-depends: - base == 4.6.*, - aeson == 0.6.*, + base == 4.7.*, + aeson == 0.7.*, bytestring == 0.10.*, filepath == 1.3.*, - ghc == 7.6.*, + ghc == 7.8.*, ghc-paths == 0.1.*, - haddock == 2.13.*, + haddock == 2.14.*, containers == 0.5.*, transformers == 0.3.*, MonadCatchIO-transformers == 0.3.*, network == 2.4.*, - process == 1.1.*, - text == 0.11.*, + process == 1.2.*, + text == 1.1.*, mtl == 2.1.* executable hdocs main-is: hdocs.hs hs-source-dirs: tools build-depends: - base == 4.6.*, + base == 4.7.*, hdocs, - aeson == 0.6.*, + aeson == 0.7.*, aeson-pretty == 0.7.*, bytestring == 0.10.*, containers == 0.5.*, filepath == 1.3.*, mtl == 2.1.*, network == 2.4.*, - text == 0.11.* + text == 1.1.* test-suite test type: exitcode-stdio-1.0 main-is: Test.hs hs-source-dirs: tests build-depends: - base == 4.6.*, + base == 4.7.*, hdocs, containers == 0.5.*, mtl == 2.1.*
src/HDocs/Base.hs view
@@ -59,7 +59,7 @@ go (DocDefList xs) = unlines (map (\(i,x) -> go i ++ ". " ++ go x) xs) go (DocCodeBlock block) = unlines (map (" " ++) (lines (go block))) ++ "\n" go (DocHyperlink (Hyperlink url label)) = maybe url (\l -> l ++ "[" ++ url ++ "]") label - go (DocPic pic) = pic + go (DocPic pic) = show pic go (DocAName name) = name go (DocExamples exs) = unlines (map formatExample exs)