Skip to content

build-depends in global section in new-style .cabal files are ignored #417

@bos

Description

@bos

(Imported from Trac #424, reported by @dcoutts on 2008-12-03)

http://hpaste.org/12669

In a .cabal file like:

name:          music
version:       0.0
cabal-version: >= 1.2
build-type:    Simple
build-depends: base == 4
library
  exposed-modules:
    Music
which uses new-style syntax but puts the build-depends in the global section, the build-depends get ignored.

It should either warn or reject this, or it should automatically propagate such global options into each buildable component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions