Skip to content

GHC options are not passed to GHC when using --ghc-options #796

@rkarp

Description

@rkarp

When calling for example stack build regex-tdfa-text --ghc-options -XFlexibleContexts (a workaround for a bug in that package) the option --ghc-options has no effect and the build fails.

It's the same problem as in this thread

I've looked at the sources and the reason is this line. If I change it to if True and rebuild Stack, the GHC Options are passed correctly.

There's obviously a reason why this check is there, but it doesn't work properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions