You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
moduleExample
( -- * Brittany doesn't like this commentfoo
) wherefoo::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.
The text was updated successfully, but these errors were encountered:
@tfausak Do you have any idea if there's any workaround for this? Usually it makes brittany unusable for any code containing comments in export list. Or if you could point me (at least approximately) into part of brittany codebase that could be responsible for this, I could try to find the issue (comparing with older version where it worked, etc). I'm happy to help, it's just super difficult for me to get into brittany codebase, mainly due to ghc-exactprint, for which I cannot find any reasonable introduction or documentation.
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:Output:
Until now I was using quite old version (built from
434854f
) and that works fine.The text was updated successfully, but these errors were encountered: