Skip to content

Detect when user changed .cabal file instead of package.yaml  #3383

Closed
@mgsloan

Description

@mgsloan

Use of package.yaml can be confusing when the user doesn't expect it - see #3380 . I think this case should somehow be detected and a noisy warning emitted.

One way to do this might be to output a copy of the *.cabal on hpack generation. Then, when later re-generating, check if the cabal file changed since the last hpack generation. If so, then the user modified it and a noisy warning should be displayed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions