Closed kolree closed 4 years ago
Please provide code snippets that show your original input and the result after formatting. I do not know how to make that site format the snippet (Ctrl-I
does nothing for me) and the example probably can be minified.
Here is another example:
function1 :: Int -> Text
function1 n =
function2 n "***"
where
-- | this is function 2
-- it calls show
function2 n t = show n <> t
gets reformatted into
function1 :: Int -> Text
function1 n =
function2 n "***"
where
function2 n t = show n <> t
The whole haddock-like section disappears
That’s different, it’s #474.
Thanks Mark.
Apparently this is how GHC parser works. It picks up the lines that start with -- *
and removes them.
Essentially the same as #474.
Let's close it as a duplicate then.
The original input:
gets reformatted into:
The part of the comment starting with
-- *
is lost.