title: Haskell Time Limit on Evaluation
body: <p>Does anyone know of a function that will allow only a certain amount of time to execute a function. Something with a type signature like this.</p>
  
  <pre><code>limited::Int-&gt;(a-&gt;b)-&gt;a-&gt;IO (Maybe b)
  </code></pre>
  
  <p>I can't think of how to implement, and I couldn't find it. The reason why I ask is I am going to make a list of all possible <a href="https://en.wikipedia.org/wiki/Brainfuck" rel="nofollow noreferrer">Brainfuck</a> programs, and I want to filter out the ones that take too long.</p>