title: Can you recognize an infinite list in a Haskell program?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7371730/how-to-tell-if-a-list-is-infinite">How to tell if a list is infinite?</a>  </p>
  </blockquote>
  
  
  
  <p>In Haskell, you can define an infinite list, for example <code>[1..]</code>. Is there a built-in function in Haskell to recognize whether a list has finite length? I don't imagine it is possible to write a user-supplied function to do this, but the internal representation of lists by Haskell may be able to support it. If not in standard Haskell, is there an extension providing such a feature?</p>