-
Notifications
You must be signed in to change notification settings - Fork 843
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
How to remove warning "Instead of 'ghc-options: -XOverloadedStrings ..." #6589
Comments
I think this is a warning generated when |
@diqye, I suspect that is a message from Cabal (the library). If you |
@diqye, I don't know why you are getting advice from Cabal (the library) to use EDIT: Hpack supports |
~/p/runai (master|✚4) $ ls $(stack path --compiler-bin)
ghc@ ghci@ hp2ps@ hsc2hs@ runhaskell@
ghc-9.4.7* ghci-9.4.7* hp2ps-ghc-9.4.7* hsc2hs-ghc-9.4.7* runhaskell-9.4.7*
ghc-pkg@ haddock@ hpc@ runghc@
ghc-pkg-9.4.7* haddock-ghc-9.4.7* hpc-ghc-9.4.7* runghc-9.4.7* I just reproduced this problem
~/p/runai (master|✚4) [SIGINT]$ stack build --cabal-verbose
runai> configure (lib + exe)
runai> Using Parsec parser
runai> Configuring runai-0.1.0.0...
runai> Warning: Instead of 'ghc-options: -XExtendedDefaultRules -XOverloadedStrings
runai> -XFlexibleContexts -XConstraintKinds -XScopedTypeVariables -XTemplateHaskell
runai> -XExtendedDefaultRules -XOverloadedStrings -XFlexibleContexts
runai> -XConstraintKinds -XScopedTypeVariables -XTemplateHaskell' use 'extensions:
runai> ExtendedDefaultRules OverloadedStrings FlexibleContexts ConstraintKinds
runai> ScopedTypeVariables TemplateHaskell ExtendedDefaultRules OverloadedStrings
runai> FlexibleContexts ConstraintKinds ScopedTypeVariables TemplateHaskell' This warning will appear whether flg is added or not. |
If you do not delete the cabal file, this warning will not appear. |
After a little experimentation, this is indeed a Cabal (the library) warning. (Stack uses Cabal to build; by default, Stack builds when you command Another way to avoid the warning is to set |
package.yaml
There are some warning as bellow when i run
stack repl
Except : No warning
The text was updated successfully, but these errors were encountered: