Skip to content

Commit

Permalink
Bump haddock-library to 1.10.0 (#1598)
Browse files Browse the repository at this point in the history
* Bump haddock-library to 1.10.0

* stack
  • Loading branch information
berberman authored Mar 20, 2021
1 parent aad6401 commit 7cb4ab7
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ library
fingertree,
ghc-exactprint,
Glob,
haddock-library >= 1.8 && < 1.10,
haddock-library ^>= 1.10.0,
hashable,
hie-compat ^>= 0.1.0.0,
hls-plugin-api ^>= 1.0.0.0,
Expand Down
9 changes: 8 additions & 1 deletion ghcide/src/Development/IDE/Spans/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,15 @@ haddockToMarkdown (H.DocIdentifier i)
= "`" ++ i ++ "`"
haddockToMarkdown (H.DocIdentifierUnchecked i)
= "`" ++ i ++ "`"
haddockToMarkdown (H.DocModule i)
haddockToMarkdown (H.DocModule (H.ModLink i Nothing))
= "`" ++ escapeBackticks i ++ "`"
-- See https://github.com/haskell/haddock/pull/1315
-- Module references can be labeled in markdown style, e.g. [some label]("Some.Module")
-- However, we don't want to use the link markup here, since the module name would be covered
-- up by the label. Thus, we keep both the label and module name in the following style:
-- some label ( `Some.Module` )
haddockToMarkdown (H.DocModule (H.ModLink i (Just label)))
= haddockToMarkdown label ++ " ( `" ++ escapeBackticks i ++ "` )"
haddockToMarkdown (H.DocWarning w)
= haddockToMarkdown w
haddockToMarkdown (H.DocEmphasis d)
Expand Down
1 change: 1 addition & 0 deletions stack-8.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extra-deps:
- lsp-1.1.1.0
- lsp-types-1.1.0.0
- lsp-test-0.13.0.0
- haddock-library-1.10.0
- heapsize-0.3.0
- hie-bios-0.7.4
- implicit-hie-cradle-0.3.0.2
Expand Down
1 change: 1 addition & 0 deletions stack-8.10.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ extra-deps:
- fourmolu-0.3.0.0
- ghc-lib-8.10.4.20210206
- ghc-lib-parser-8.10.4.20210206
- haddock-library-1.10.0
- heapsize-0.3.0
- hie-bios-0.7.4
- implicit-hie-cradle-0.3.0.2
Expand Down
1 change: 1 addition & 0 deletions stack-8.10.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extra-deps:
- data-tree-print-0.1.0.2@rev:2
- floskell-0.10.4
- fourmolu-0.3.0.0
- haddock-library-1.10.0
- heapsize-0.3.0
- hie-bios-0.7.4
- implicit-hie-cradle-0.3.0.2
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extra-deps:
- ghc-source-gen-0.4.0.0
- ghc-trace-events-0.1.2.1
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- haddock-library-1.10.0
- hashable-1.3.0.0
- heapsize-0.3.0
- hie-bios-0.7.4
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extra-deps:
- ghc-source-gen-0.4.0.0
- ghc-trace-events-0.1.2.1
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- haddock-library-1.10.0
- hashable-1.3.0.0
- heapsize-0.3.0
- hie-bios-0.7.4
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extra-deps:
- ghc-lib-parser-8.10.4.20210206
- ghc-lib-parser-ex-8.10.0.17
- ghc-trace-events-0.1.2.1
- haddock-library-1.8.0
- haddock-library-1.10.0
- haskell-src-exts-1.21.1
- heapsize-0.3.0
- hie-bios-0.7.4
Expand Down
1 change: 1 addition & 0 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extra-deps:
- ghc-lib-parser-8.10.4.20210206
- ghc-trace-events-0.1.2.1
- haskell-src-exts-1.21.1
- haddock-library-1.10.0
- heapsize-0.3.0
- hie-bios-0.7.4
- hlint-3.2.3
Expand Down
1 change: 1 addition & 0 deletions stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extra-deps:
- ghc-lib-parser-8.10.4.20210206
- ghc-trace-events-0.1.2.1
- haskell-src-exts-1.21.1
- haddock-library-1.10.0
- heapsize-0.3.0
- hie-bios-0.7.4
- hlint-3.2.3
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extra-deps:
- ghc-source-gen-0.4.0.0
- ghc-trace-events-0.1.2.1
- haddock-api-2.22.0@rev:1
- haddock-library-1.8.0
- haddock-library-1.10.0
- hashable-1.3.0.0
- heapsize-0.3.0
- hie-bios-0.7.4
Expand Down

0 comments on commit 7cb4ab7

Please sign in to comment.