-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should flag Example
default to True
?
#157
Comments
I think the drawback of the flag defaulting to |
Is that so? My experiment suggests otherwise. cabal-version: 3.0
name: depend-on-bnfc
version: 0
executable depend-on-bnfc
main-is: DependOnBNFC.hs
build-depends:
, base
, BNFC Building it does this:
So it does no build For reproducibility, here also import BNFC.CF
main :: IO ()
main = putStrLn "Executed DependOnBNFC" Since you are the
Indeed,
Isn't this an error on the side of |
I did have in mind Stack. Its online help explains "With dependencies, Stack will always build the library (if present) and all executables (if any), and ignore test suites and benchmarks." and my experimentation suggested that was accurate. Whether or not that is a 'bug' in Stack, I'll have to investigate further. Stack aims to support Cabal 1.18.1.5 and I am conscious that EDIT: This comment commercialhaskell/stack#4132 (comment) suggests that it is a deliberate design decision on the part of Stack, justified in part by backwards compatability. |
Ok, maybe then this is blocked upstream. Once |
|
This is not a bug in @mpilgrem of course, you can reevaluate at some point, just be aware that this will affect a lot of people, especially in-house projects that use Personal opinion: Breaking other peoples code for minor gains is never a nice thing to do. I think at this point, it's no secret anymore that this "let's randomly break stuff" mentality is one of the contributing factors to Haskell's decline. |
I agree that one should err on the conservative side rather than on the progressive. However, it is also desirable that the Is there a problem with |
ansi-terminal/ansi-terminal/ansi-terminal.cabal
Lines 28 to 30 in 2a4a6d8
I am getting:
So I have to type
cabal run -f+example ansi-terminal-example
.Would there be any drawback to default flag
example
toTrue
?Wouldn't users that have
build-depends: ansi-terminal
still only get the library as before?The text was updated successfully, but these errors were encountered: