I am used to working with Python and fairly new to Haskell.
I was wondering how strings are left/right aligned in Haskell and if there exist equivalent functions to the following Python functions in Haskell:
str = "Hello stackoverflow."
# Printing a left aligned string
print (str.ljust(40))
# Printing a right aligned string
print (str.rjust(40))