Ticket #282 (closed defect: duplicate)

Opened 6 months ago

Last modified 6 months ago

nested multiline comments have the inner content deleted

Reported by: aavogt Owned by:
Priority: major Milestone:
Version: 2.13.2 Keywords:
Cc:

Description

Haddock version 2.13.2, with ghc-7.6.2 drops the NOINLINE bit for:

module Main where
{- |

> "{-# NOINLINE foo #-}"
> bar
-}
main = main

My current workaround is to use -- comments.

Change History

Changed 6 months ago by Fūzetsu

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

See #203 for a way to do this. Namely if you make your module into

module Main where
{- |

@
"{-\# NOINLINE foo \#-}"
bar
@
-}
main = main

then you'll get the expected output.

http://fuuzetsu.co.uk/images/1393258982.png

-- |
--
-- @
-- "{-# NOINLINE foo #-}"
-- bar
-- @
main = main

also works if you don't want to rely on escaping HTML codes and are willing to give up the {- -} syntax.

Note: See TracTickets for help on using tickets.