Why :sprint always prints a “_”?
Haskell is a lazy language. It doesn’t evaluate results until they are “needed”. Now, just printing a value causes all of it to be “needed”. In other words, if you type an expression in GHCi, it will try to print out the result, which causes it all to be evaluated. Usually that’s what you want. … Read more