Skip to content

Deprecate "executables" after 0.18.0 release? #178

Closed

Description

@sol
No description provided.

Activity

  1. sol commented on Jun 8, 2017

    @sol
    OwnerAuthor

    My only input is that it might make more sense to keep executables instead of executable. Other fields that behave like this, like dependencies, are plural.

    (moving this discussion here)

    @tfausak That would mean we remove executable all together and only go with executables? On the plus side that would be 100% backward-compatible, so we would not need a deprecation cycle.

    It's just that reading

    executabels:
      main: Main.hs

    feels weird to me, at least initially.

    But in general I'm open to it.

  2. changed the title [-]Deprecate "executables" after 0.18.0 release [/-] [+]Deprecate "executables" after 0.18.0 release?[/+] on Jun 8, 2017
  3. tfausak commented on Jun 8, 2017

    @tfausak
    Collaborator

    You're right, that is a little weird. I'm not sure which is better 😕

    dependencies: base
    dependencies: [ base ]
    dependencies:
      - base
    
    executables: { main: Main.hs }
    executables: [ { main: Main.hs } ]
    executables:
      main: Main.hs

    On the other hand, reading multiple executables in the executable section is also a bit strange.

    executable:
      one: { main: one.hs }
      two: { main: two.hs }

    I don't have a super strong opinion either way.

  4. sol commented on Jun 13, 2017

    @sol
    OwnerAuthor

    @tfausak Let's go with what your originally intended, having executable as a shortcut for executables: { package-name: ... }. That way we also get slightly better error messages. Ok with you?

  5. tfausak commented on Jun 13, 2017

    @tfausak
    Collaborator

    👍 Sounds great!

  6. sol commented on Jun 13, 2017

    @sol
    OwnerAuthor

    Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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