Skip to content

Brittany fails to format code with Haddock comments in module export list #365

@vaclavsvejcar

Description

@vaclavsvejcar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions