Skip to content

fix(Cabal): Removes the short -g option for the --ghc flag - #12201

Open
zlonast wants to merge 1 commit into
haskell:masterfrom
zlonast:zlonast/remove-g-option
Open

fix(Cabal): Removes the short -g option for the --ghc flag#12201
zlonast wants to merge 1 commit into
haskell:masterfrom
zlonast:zlonast/remove-g-option

Conversation

@zlonast

@zlonast zlonast commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

fix: #2056

I think we can simply redefine the flag, and few people will notice, since it doesn't appear in libraries or executables.

Those who do notice will now use the full flag. As I understand it, these are the people who manually enter flags in the console.

Currently, this is mostly LLM, which makes this change even more valuable for them.


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

@jappeace jappeace left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

question: why would you ever set a flag to compile with ghc?

@zlonast

zlonast commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator Author

In general, this simply gives the compiler a choice. In the case of ghc, it is always selected by default. We try not to be tied to a single compiler.

@zlonast
zlonast force-pushed the zlonast/remove-g-option branch from 39abfc1 to c7efeb1 Compare August 16, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repurpose -g to add debug information

2 participants