title: Haskell data type pattern matching
body: <p>Lets say you have </p>
  
  <pre><code>data SS=
  SSliteral Value
  </code></pre>
  
  <p>and</p>
  
  <pre><code>data Value=
  SSint Int
  </code></pre>
  
  <p>Now lets say you have <code>n</code> which is of type <code>SS</code>.  You want to get the <code>Int</code> value of <code>SS</code>, how would you go about doing so?</p>