Skip to content

Commit 1716dca

Browse files
steffahntreeowl
authored andcommitted
Fix Documentation Typo in Data/Sequence.hs (#541)
In the module header, in a code example where “index” is used infix, the back-ticks need to be escaped, otherwise haddock interprets them as (an alternative form of) quotes for a hyperlinked identifier which in particular makes the back-ticks invisible in the documentation and generates invalid Haskell code in the code example.
1 parent eef7726 commit 1716dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Sequence.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
--
6666
-- but
6767
--
68-
-- @ (1 :<| undefined) `index` 0 = undefined @
68+
-- @ (1 :<| undefined) \`index\` 0 = undefined @
6969
--
7070
-- Sequences may also be compared to immutable
7171
-- [arrays](https://hackage.haskell.org/package/array)

0 commit comments

Comments
 (0)