Skip to content

stack script should allow setting ghc-options #3454

@mgsloan

Description

@mgsloan

Currently, stack script only allows specifying arguments to the user's program, not to the ghc invocation. Should probably use --ghc-arg as described in https://downloads.haskell.org/~ghc/master/users-guide/runghc.html , rather than passing the arguments directly. I suggest adding the following:

  • --ghc-options, which works just like the argument to build
  • --ghc-arg, which allows passing it to just the script command's ghc invocation.

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