haskell / haskell/cabal

Inconsistent naming/usage for ghcjs-options?

Open
#3,999 6 comments 0 reactions 0 assignees View on GitHub
compiler: ghcjs meta: easy type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I just noticed that when I specify `ghc-options` in a `.cabal` file for a ghcjs project, these options are passed to the `ghcjs --make` execution during the build.

But when I pass `cabal build --ghc-options=...`, those options are not passed to it; instead I need to use `cabal build --ghcjs-options=...`.

This seems inconsistent to me, and puts me into a situation where the Cabal file format and the cabal command line flags work differently.

Is this an oversight or intended?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.