Ticket #267 (closed defect: invalid)

Opened 11 months ago

Last modified 8 months ago

Docs on arguments parsing failures

Reported by: nyvo Owned by:
Priority: major Milestone:
Version: 2.11.0 Keywords:
Cc:

Description

While the following parses fine:

f 
  :: (Show a)
  => a
  -- ^ Doc on /a/.
  -> b
  -- ^ Doc on /b/.
  -> c
  -- ^ Doc on /c/.

All the following fail:

f 
  :: (Show a)
  -- | Doc on /a/.
  => a
  -- | Doc on /b/.
  -> b
  -- | Doc on /c/.
  -> c

And the most irritating:

f :: 
  (Show a) => 
  -- | Doc on /a/.
  a -> 
  -- | Doc on /b/.
  b ->
  -- | Doc on /c/.
  c

Thereby haddock imposes a certain formatting style, which is not very nice and not at all of its concern.

Change History

Changed 8 months ago by Fūzetsu

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

This would have to be changed in the GHC parser so please file a bug with them. Once the changes are made there, it should Just Work™ on our side.

Note: See TracTickets for help on using tickets.