I am new to Haskell. Previously I have programmed in Python and Java. When I am debugging some code I have a habit of littering it with print statements in the midd
print
Read this. You can use Debug.Trace.trace in place of print statements.
Debug.Trace.trace