Skip to content

Commit

Permalink
restore compat. with haddock-library 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Apr 12, 2021
1 parent b085e7a commit 8d4d63d
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cabal-version: 2.4
build-type: Simple
category: Development
name: ghcide
version: 1.2.0.0
version: 1.2.0.1
license: Apache-2.0
license-file: LICENSE
author: Digital Asset and Ghcide contributors
Expand Down Expand Up @@ -54,7 +54,7 @@ library
ghc-exactprint,
ghc-trace-events,
Glob,
haddock-library ^>= 1.10.0,
haddock-library >= 1.8 && < 1.11,
hashable,
hie-compat ^>= 0.1.0.0,
hls-plugin-api ^>= 1.1.0.0,
Expand Down
5 changes: 5 additions & 0 deletions ghcide/src/Development/IDE/Spans/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ haddockToMarkdown (H.DocIdentifier i)
= "`" ++ i ++ "`"
haddockToMarkdown (H.DocIdentifierUnchecked i)
= "`" ++ i ++ "`"
#if MIN_VERSION_haddock_library(1,10,0)
haddockToMarkdown (H.DocModule (H.ModLink i Nothing))
= "`" ++ escapeBackticks i ++ "`"
-- See https://github.com/haskell/haddock/pull/1315
Expand All @@ -130,6 +131,10 @@ haddockToMarkdown (H.DocModule (H.ModLink i Nothing))
-- some label ( `Some.Module` )
haddockToMarkdown (H.DocModule (H.ModLink i (Just label)))
= haddockToMarkdown label ++ " ( `" ++ escapeBackticks i ++ "` )"
#else
haddockToMarkdown (H.DocModule i)
= "`" ++ escapeBackticks i ++ "`"
#endif
haddockToMarkdown (H.DocWarning w)
= haddockToMarkdown w
haddockToMarkdown (H.DocEmphasis d)
Expand Down
1 change: 0 additions & 1 deletion stack-8.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extra-deps:
- lsp-1.2.0.0
- lsp-types-1.2.0.0
- lsp-test-0.14.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: 0 additions & 1 deletion stack-8.10.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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: 0 additions & 1 deletion stack-8.10.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ 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
1 change: 0 additions & 1 deletion stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ 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: 0 additions & 1 deletion stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ 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: 0 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ 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.10.0
- hashable-1.3.0.0
- heapsize-0.3.0
- hie-bios-0.7.4
Expand Down

0 comments on commit 8d4d63d

Please sign in to comment.