Ticket #179 (new enhancement)

Opened 6 years ago

Last modified 5 years ago

Reusing named chunks in other modules

Reported by: reinerp Owned by:
Priority: minor Milestone:
Version: 2.9.2 Keywords:


Similar to #97. Consider the following:

module A (
  -- $note

  -- $note
  -- This is a long note.

  -- | This is a function
  f :: Int -> Int
  f x = x

module B (
  -- $A.note

  import A

Currently, there is no way to insert the documentation chunk named $note (which is defined in module A) into the documentation for B. I propose the above syntax as a way to do this.

The motivation for this construct is as follows. Since A and B export (at least some of) the same API, the $note chunk should be included in both of their Haddocks. It is possible to work around this need by using anchors to link to A's note from B, but this a workaround rather than a solution.

Change History

Changed 6 years ago by waern

  • priority changed from major to minor

Changed 5 years ago by anonymous

  • milestone 2.10.0 deleted

Milestone 2.10.0 deleted

Note: See TracTickets for help on using tickets.