title: Implicitly call function
body: <p>I need to find a way to implicitly call a function in Haskell in a similar way that you can do using <code>implicit</code> functions in Scala.</p>
  
  <p>I've looked into using <code>{-# LANGUAGE ImplicitParams #-}</code> like shown in <a href="https://stackoverflow.com/questions/11141600/implicit-parameter-and-function">Implicit parameter and function</a> but I can't figure out how to achieve something similar without explicitly defining it.</p>
  
  <p>This is a very reduced version of my code</p>
  
  <pre><code>a :: Int -&gt; Int
  a n = n + 1
  
  b :: [Char] -&gt; Int
  b cs = length cs
  </code></pre>
  
  <p>I want to be able to run</p>
  
  <pre><code>Test&gt; a "how long" -- outputs 8, as it implicitly calls a (b "how long")
  </code></pre>
  
  <p>as well as </p>
  
  <pre><code>Test&gt; a 5 -- outputs 6
  </code></pre>