title: How to set ghci options for cabal repl?
body: <p>I have a haskell project which I compile with <code>-Werror</code> by default. This means that when I run <code>cabal repl</code> it runs with the option <code>-Werror</code> turned on. This means that for example when I evaluate <code>2 + 2</code> I get the following error message:</p>
  
  <pre><code>&lt;interactive&gt;:2:3: Warning:
  Defaulting the following constraint(s) to type `Integer'
    (Num a0) arising from a use of `+'
  In the expression: 2 + 2
  In an equation for `it': it = 2 + 2
  </code></pre>
  
  <p>So I need a way to turn on the option, <code>-w</code> or maybe <code>-Wwarn</code> on by default for <code>cabal repl</code>. How do I do this? Also what are the default flags for <code>ghci</code>?</p>