<div dir="auto"><div dir="auto">Hi.<div dir="auto"><br></div><div dir="auto">I haven't tried myself, but perhaps the OPTIONS_GHC pragma will do what you want. Just add</div><div dir="auto"><br></div><div dir="auto">{-# <span style="font-family:sans-serif">OPTIONS_GHC -Wall #</span>-}</div><div dir="auto"><br></div><div dir="auto">to the beginning of your Setup.hs file.</div><div dir="auto"><br></div><div dir="auto">More info: <a href="https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using.html#source-file-options">https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using.html#source-file-options</a></div><div dir="auto"><br></div><div dir="auto">I hope that helps.</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Daniel</div></div><br><div class="gmail_quote"><div dir="ltr">Am Mi., 16. Jan. 2019, 09:54 hat Magicloud Magiclouds <<a href="mailto:magicloud.magiclouds@gmail.com" target="_blank" rel="noreferrer">magicloud.magiclouds@gmail.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have some code in Setup.hs in a cabalized project. I'd like them to<br>
be warning-free. But I could not find a way to set -Wall.<br>
<br>
I tried ghc-options in ~/.cabal/config. But seems like it did not kick in.<br>
<br>
```<br>
/bin/ghc --make -fbuilding-cabal-package -odir<br>
/home/shida/src/Personal/cairo-core/dist-newstyle/build/x86_64-linux/ghc-8.6.3/cairo-core-1.16.0/setup<br>
-hidir /home/shida/src/Personal/cairo-core/dist-newstyle/build/x86_64-linux/ghc-8.6.3/cairo-core-1.16.0/setup<br>
-i -i/home/shida/src/Personal/cairo-core/. -optP-include<br>
-optP/home/shida/src/Personal/cairo-core/dist-newstyle/build/x86_64-linux/ghc-8.6.3/cairo-core-1.16.0/setup/setup_macros.h<br>
-hide-all-packages -no-user-package-db -package-db<br>
/home/shida/.cabal/store/ghc-8.6.3/package.db -package-db<br>
/home/shida/src/Personal/cairo-core/dist-newstyle/packagedb/ghc-8.6.3<br>
-package-id Cabal-2.4.0.1 -package-id base-4.12.0.0 -package-id<br>
directory-1.3.3.0 -package-id filepath-1.4.2.1 -package-id<br>
haskell-src-exts-1.21.0-f3e84a9ee8883b0dcaaaaba712d74996854b441aa843a4dedc055c685debcfdb<br>
/home/shida/src/Personal/cairo-core/dist-newstyle/build/x86_64-linux/ghc-8.6.3/cairo-core-1.16.0/setup/setup.hs<br>
-o /home/shida/src/Personal/cairo-core/dist-newstyle/build/x86_64-linux/ghc-8.6.3/cairo-core-1.16.0/setup/setup<br>
-threaded<br>
```<br>
-- <br>
竹密岂妨流水过<br>
山高哪阻野云飞<br>
<br>
And for G+, please use magiclouds#<a href="http://gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">gmail.com</a>.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>