title: Left and Right String Alignment in Haskell
body: <p>I am used to working with Python and fairly new to Haskell.</p>
  <p>I was wondering how strings are left/right aligned in Haskell and  if there exist  equivalent functions to the following Python functions in Haskell:</p>
  <pre><code>str = &quot;Hello stackoverflow.&quot;
  
  # Printing a left aligned string  
  print (str.ljust(40)) 
  
  # Printing a right aligned string  
  print (str.rjust(40))
  </code></pre>