Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing errors with Haddock #281

Closed
dschrempf opened this issue Feb 13, 2020 · 1 comment
Closed

Parsing errors with Haddock #281

dschrempf opened this issue Feb 13, 2020 · 1 comment

Comments

@dschrempf
Copy link

Formatting of Haddock comments in the export list of module headers leads to semantic errors with Haddock. For example, the following code

( DataTypeI       
, DataTypeII(DataConstructor)
  -- * Haddock heading
, name
)

is formatted by Brittany to

( DataTypeI
, DataTypeII
  ( DataConstructor
    -- * Haddock heading
  )
, name
)

which throws a Haddock error of the form

parse error on input ‘-- * Haddock heading’
source  >    |      
source  > 23 |     -- * Haddock heading
source  >    |     ^^^^^^^^^^^^

See also issue #231.

@tfausak
Copy link
Collaborator

tfausak commented Jul 21, 2020

I think this is a duplicate of #220.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants