setting compiler flags to enable all warnings

73 views
Skip to first unread message

berk

unread,
Jan 16, 2011, 5:37:09 PM1/16/11
to leksah
Hi,

I am currently learning haskell and decided to use leksah during the
process. However I couldn't find a way to enable all compiler
warnings. In fact I couldn't find the way to set any compiler flag.
Adding "-Wall" or (say) "--fwarn-name-shadowing" to Package->Edit
Flags->Build flags or Package->Edit Flags->Config flags does not seem
to have any effect. What is the correct way to enable all warnings? I
am using Leksah 0.8.0.8, ghc 6.12.1-12 on ubuntu 10.04 x64 desktop.

Thanks in advance.

Hamish Mackenzie

unread,
Jan 17, 2011, 12:37:31 AM1/17/11
to lek...@googlegroups.com
You need to tell cabal what program you the option is for...

Package -> Edit Flags -> Build
Add --ghc-option=-Wall

Alternatively you can add it to your cabal package...

Package -> Edit Package -> 1 Compiler -> GHC
Then in the box add -Wall and click the Add button

andrew

unread,
Sep 26, 2012, 4:56:01 AM9/26/12
to lek...@googlegroups.com, hamish.k....@googlemail.com
this is - - ghc-options (no blank between the dashes, but two dashes, which is not clearly visible above)

Reply all
Reply to author
Forward
0 new messages