title: How to access nth element in a Haskell tuple
body: <p>I have this:</p>
  
  <pre><code> get3th (_,_,a,_,_,_) = a
  </code></pre>
  
  <p>which works fine in GHCI but I want to compile it with GHC and it gives error. If I want to write a function to get the nth element of a tuple and be able to run in GHC what should I do?
  my all program is like below, what should I do with that?</p>
  
  <pre><code> get3th (_,_,a,_,_,_) = a
  
  
   main = do 
  
      mytuple  &lt;- getLine 
      print $  get3th mytuple
  </code></pre>