Most recent version of Brittany from master (0aa04af) fails when Haddock comments are present in list of exported declarations. Here is the example to replicate:
module Example
( -- * Brittany doesn't like this comment
foo
) where
foo :: String
foo = "hello"
Output:
Error: Command failed: /Users/vaclav/.local/bin/brittany Example.hs --write-mode display
Error: detected unprocessed comments. The transformation output will most likely not contain some of the comments present in the input haskell source file.
Affected are the following comments:
(Comment "-- * Brittany doesn't like this comment" Example.hs:2:5-43 Nothing)
(Comment "-- * Brittany doesn't like this comment" Example.hs:2:5-43 Nothing)
Until now I was using quite old version (built from 434854f) and that works fine.