Ticket #161 (closed defect: invalid)

Opened 4 years ago

Last modified 12 months ago

Nested {- -} comments in code examples

Reported by: McManiaC Owned by:
Priority: major Milestone:
Version: 2.8.0 Keywords:
Cc: mail@…

Description

This...

-- > {- long comment -}

...get's printed out in the haddock document just as you'd expect it to, but...

{-

> {- long comment -}

-}

...is not shown at all.

See for example http://n-sch.de/hdocs/test/Test.html

Change History

Changed 4 years ago by McManiaC

  • cc mail@… added

Changed 22 months ago by anonymous

  • milestone 2.7.0 deleted

Milestone 2.7.0 deleted

Changed 12 months ago by Fūzetsu

  • status changed from new to closed
  • resolution set to invalid

This can't possibly work because it's not valid Haskell. The first ‘-}’ closes the comment block and there's no way to escape that. You'll have to use the first form if you want to represent long comments inside the docs.

Note: See TracTickets for help on using tickets.