title: anyone know how to use a partially applied three argument function infix (haskell)
body: <p>I want to apply a 3 argument function in different ways based on a boolean value (one of the arguments).</p>
  
  <p>I'd like to be able to apply it in an infix manner so I can chain it (example below). something like the following but that actually works.</p>
  
  <pre><code>f :: Bool -&gt; a -&gt; a -&gt; a
  
  f True  i j = i
  f False i j = j
  
  ... y `(f True)` z `(f False)` b
  </code></pre>
  
  <p>Do I need to have the Bool as the second variable? Or something else? I'm kind of lost.</p>
  
  <p>P.S. the reason I wanted to do this was to have optional append function</p>