<div dir="ltr"><div><div>Hi<br></div><div><br>This regarding GHC behaviour for literate Haskell programs in Bird<br>style. GHC expects a blank line between comment[1] and code.<br>Otherwise, during the literate pre-processor stage, the error<br>'unlit: Program line next to comment' is reported.<br><br>While above behaviour makes sense in general, there are situations<br>where one would like to place comments adjacent to code with no<br>intervening blank line. For example, in documenting a declaration<br>using Haddock (in standard, non-literate Haskell), as shown in<br><a href="https://www.haskell.org/haddock/doc/html/markup.html#idm140354810917952" target="_blank">sections 3.1</a> and <a href="http://www.haskell.org/haddock/doc/html/ch03s02.html" target="_blank">3.2</a> of the Haddock User Guide, no blank line<br>separates comment and code.<br><br></div><div>Any way to enable GHC to accept Bird style literate programs with<br>no blank lines separating comment and code?<br></div><div><br></div><div>[1] 'Comment' (in context of Bird style) refers to text on lines not<br></div><div>beginning with '>'.<br><br></div>Regards<br></div>Sidhu<br></div>