Open brandonchinn178 opened 1 year ago
Describe the bug A multiline haddock in a single line export list incorrectly changes to a single line haddock comment.
To Reproduce
module Foo ({- | asdf -} foo) where
Currently, formatting this with --unsafe returns:
--unsafe
module Foo (-- | asdf foo) where
Expected behavior Should reformat to
module Foo ( -- | asdf foo ) where
or stay with multiline haddock
Environment
Additional context Add any other context about the problem here.
Describe the bug A multiline haddock in a single line export list incorrectly changes to a single line haddock comment.
To Reproduce
Currently, formatting this with
--unsafe
returns:Expected behavior Should reformat to
or stay with multiline haddock
Environment
Additional context Add any other context about the problem here.