Search code examples
haskellghcghci

Globally disable a default warning


Since the last update, GHCi is showing lots of Warning: Tab character messages and I want to set this warning message to be disabled by default.

Is there a config file I can create/edit to set the -fnowarn-tabs flag globally?


Solution

  • For GHCi, a config file can be added to your AppData or home directory, as per GHC documentation: The .ghci file. For Windows this file is %APPDATA%\ghc\ghci.conf.

    You can add the following line, as described by the warnings page, to disable the Tab warning in GHCi:

    :set -fno-warn-tabs