haskell / haddock

Haskell Documentation Tool

Home Page:www.haskell.org/haddock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`foo'` links to foo

zliu41 opened this issue · comments

While 'foo'' and `foo'' both correctly link to foo', `foo'` links to foo, which seems like a bug.

Alright, I can reproduce it with the following code:

module Module where

-- | This is the `foo'` function.
foo' :: ()
foo' = ()
❯ haddock Module.hs 
Haddock coverage:
Warning: Package name is not available.
Warning: 'foo' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
  50% (  1 /  2) in 'Module'
  Missing documentation for:
    Module header

closed by #1483