Skip to content

Instantly share code, notes, and snippets.

@massysett
Created April 3, 2015 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save massysett/ac42073f92f098b55dfe to your computer and use it in GitHub Desktop.
Save massysett/ac42073f92f098b55dfe to your computer and use it in GitHub Desktop.
module Main where
-- In the following Haddock comment, place point in the first "Lorem
-- ipsum" line and then run M-x fill-paragraph. Nothing will happen.
-- | Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc
-- Lorem ipsum etc Lorem ipsum etc
-- But it works fine in the following comment. Place point in the
-- first line of the next comment and run M-x fill-paragraph.
-- Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc
-- Lorem ipsum etc Lorem ipsum etc
-- One workaround seems to be putting the Haddock indicator on a
-- separate line; is this what people are usually doing? It results
-- in a wasted line. Try fill-paragraph in the lorem ipsum line in
-- this sample. fill-paragraph also works properly in the -- | line
-- too.
-- |
-- Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc Lorem ipsum etc
-- Lorem ipsum etc Lorem ipsum etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment