title: How to print a list of strings using 'unwords' in Haskell?
body: <p>I want to print list of strings like shown below.</p>
  
  <pre><code>|Name|Country|Age|
  ------------------
  |1   |USA    |20 |
  |2   |UK     |19 |
  </code></pre>
  
  <p>I was able to achieve this using the following.</p>
  
  <pre><code>printfieldName :: [String] -&gt; String
  printfieldName [] = []
  printfieldName (x:xs)  = "|" ++ x ++ "\t" ++ printfieldName (xs)
  </code></pre>
  
  <p>Is it possible to achieve this using the inbuilt function 'unwords'. I was able print it using 'unwords' but was unable to place <code>|</code> between the words.</p>