File tree 6 files changed +4
-14
lines changed
src/Development/IDE/Spans
6 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ library
41
41
extra,
42
42
fuzzy,
43
43
filepath,
44
- haddock-library ,
44
+ haddock-library >= 1.8 ,
45
45
hashable,
46
46
haskell-lsp-types == 0.19. *,
47
47
haskell-lsp == 0.19. *,
Original file line number Diff line number Diff line change @@ -82,11 +82,7 @@ spanDocToMarkdown (SpanDocText txt) = txt
82
82
83
83
spanDocToMarkdownForTest :: String -> String
84
84
spanDocToMarkdownForTest
85
- #if MIN_VERSION_haddock_library(1,6,0)
86
85
= haddockToMarkdown . H. toRegular . H. _doc . H. parseParas Nothing
87
- #else
88
- = haddockToMarkdown . H. toRegular . H. _doc . H. parseParas
89
- #endif
90
86
91
87
-- Simple (and a bit hacky) conversion from Haddock markup to Markdown
92
88
haddockToMarkdown
@@ -127,13 +123,8 @@ haddockToMarkdown (H.DocExamples es)
127
123
= " >>> " ++ expr ++ " \n " ++ unlines result
128
124
haddockToMarkdown (H. DocHyperlink (H. Hyperlink url Nothing ))
129
125
= " <" ++ url ++ " >"
130
- #if MIN_VERSION_haddock_library(1,8,0)
131
126
haddockToMarkdown (H. DocHyperlink (H. Hyperlink url (Just label)))
132
127
= " [" ++ haddockToMarkdown label ++ " ](" ++ url ++ " )"
133
- #else
134
- haddockToMarkdown (H. DocHyperlink (H. Hyperlink url (Just label)))
135
- = " [" ++ label ++ " ](" ++ url ++ " )"
136
- #endif
137
128
haddockToMarkdown (H. DocPic (H. Picture url Nothing ))
138
129
= " "
139
130
haddockToMarkdown (H. DocPic (H. Picture url (Just label)))
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ extra-deps:
11
11
- fuzzy-0.1.0.0
12
12
- regex-base-0.94.0.0
13
13
- regex-tdfa-1.3.1.0
14
+ - haddock-library-1.8.0
14
15
nix :
15
16
packages : [zlib]
16
17
flags :
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ extra-deps:
11
11
- regex-base-0.94.0.0
12
12
- regex-tdfa-1.3.1.0
13
13
- parser-combinators-1.2.1
14
+ - haddock-library-1.8.0
14
15
nix :
15
16
packages : [zlib]
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ extra-deps:
15
15
- regex-base-0.94.0.0
16
16
- regex-tdfa-1.3.1.0
17
17
- parser-combinators-1.2.1
18
+ - haddock-library-1.8.0
18
19
nix :
19
20
packages : [zlib]
20
21
allow-newer : true
Original file line number Diff line number Diff line change @@ -1665,11 +1665,7 @@ haddockTests
1665
1665
(unlines
1666
1666
[ " "
1667
1667
, " "
1668
- #if MIN_VERSION_haddock_library(1,8,0)
1669
1668
, " However, `(+)` and `(*)` are"
1670
- #else
1671
- , " However, '(+)' and '(*)' are"
1672
- #endif
1673
1669
, " customarily expected to define a ring and have the following properties: "
1674
1670
, " + ****Associativity of (+)****: `(x + y) + z` = `x + (y + z)`"
1675
1671
, " + ****Commutativity of (+)****: `x + y` = `y + x`"
You can’t perform that action at this time.
0 commit comments