Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

parse failure: vertical bar comment on datatype last constructor  #1174

@shapr

Description

@shapr

haddock fails to parse a vertical bar comment on the last constructor of a datatype

module Main where

main = print "hi"

data Fooa =
  Bara -- | this is fine
  | Baza -- | this line is fine
  | Quuxa

data Foo =
  Bar -- | this is fine
  | Baz -- | this line breaks unless there's another data constructor on the next line!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions