Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Consecutive named chunks in export list #392

@dmcclean

Description

@dmcclean

When processing inclusion of named chunks in export lists, haddock 2.16.0 appears to only process the first in a consecutive series of named chunks, when an attempt is made to include multiple chunks without an intervening declaration.

To reproduce:

Place the following content in Foo.hs:

module Foo
(
  -- $chunk1
  -- $chunk2
  foo,
  -- $chunk3
  bar
)
where

{- $chunk1
This is chunk 1.
-}

{- $chunk2
This is chunk 2.
-}

{- $chunk3
This is chunk 3.
-}

foo = 3
bar = 7

Run haddock -o .\foodoc -h Foo.hs.

Observe that the result includes chunks 1 and 3, but not 2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions