commercialhaskell / commercialhaskell/stack

When a flag isn't recognized, check if it's a GHC option, tell users how to pass those

Open
#3,556 0 comments 0 reactions 0 assignees View on GitHub
component: output (UI/UX) type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

I remember that back when I was starting to use Haskell, back in the days of GHC version 6 and when cabal-install was all we had, I was frustrated that I couldn't pass things like `-ddump-splices` directly to configure or build. At the time it was confusing to me that the GHC manual would say "pass this flag", but you needed to know how to plumb that flag through to GHC.

It would be really cool to detect that the user has attempted to pass a GHC flag, and tell them about how ghc-options work with stack. This might work by catching the optparse-applicative error and turning it into a different variety of error if it matches a GHC flag name.

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.