Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multi-line flags description produces invalid Cabal file #622

@sellout

Description

@sellout
flags:
  meh:
    description: |
      This is some text
      on multiple lines
      that should be indented.
    manual: true
    default: true

produces

flag meh
  description: This is some text
on multiple lines
that should be indented.

  manual: True
  default: True

which causes Cabal to complain

Warning: foo.cabal:53:1: Ignoring section: "that"
Warning: foo.cabal:52:1: Ignoring section: "on"

indenting just one space more than the field name allows it to work

flag meh
  description: This is some text
   on multiple lines
   that should be indented.

  manual: True
  default: True

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions