title: How to create Type which contains String with limited length in Haskell
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7978191/how-to-make-a-type-with-restrictions">How to make a type with restrictions</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible in Haskell to create a type for example "Name" which is a String but containing no more then 10 letters?</p>
  
  <p>If not how can I forbid to create a Person with to long name (where Person is defined like that: <code>data Person = Person Name</code>).</p>
  
  <p>Maybe it is not important at all, maybe that kind of problems should be solved in Haskell in a different way?</p>