DEV Community

Discussion on: A simple Haskell program

Collapse
 
ailrun profile image
Junyoung Clare Jang

IMO, you don't need $ for printOfAll, since

printOfAll (Cons x y) = putStrLn (show x) >> printAllOf y

is enough.

Collapse
 
gefjon profile image
Phoebe Goldman

You're right; this is much cleaner. I'm going to go back and edit the post now.