turn off warning in leksah
Asked Answered
M

2

5

For a good reason, I want to temporally turn of the warnings about the missing type level signature in the leksah IDE.

I changed the flags to ghc cabal file and the warnings are absent when I run "cabal install" from the console.

However, if I build the same project in the leksah IDE, the warnings are still shown.

How can I turn off "Warning: Top-level binding with no type signature:" in the leksah IDE?

Mediate answered 29/12, 2011 at 19:39 Comment(0)
C
3

Add the desired option to the cabal file:

ghc-options: -fno-warn-missing-signatures

Cantu answered 30/12, 2011 at 13:30 Comment(0)
H
8

It is much better to disable warnings only in a single file than in whole project. Use

{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

pragma on the top of a file.

Heisler answered 6/10, 2014 at 9:41 Comment(0)
C
3

Add the desired option to the cabal file:

ghc-options: -fno-warn-missing-signatures

Cantu answered 30/12, 2011 at 13:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.