data declaration with a kind signature is treated as an unprocessed comment #346
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#346
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I'm using
brittany-0.13.1.0
withghc-8.10.4
on Ubuntu 18.04.5.Given a module containing a
data
-declaration that has a kind signature:and the following
brittany.yaml
:Click to expand
brittany
fails with an error about an unprocessed comment:However, if I change the
data
declaration to anewtype
:then
brittany
succeeds:Of course, this workaround can't be used when the original
data
-declaration has zero or more than 1 field.