New lesson in the GHCi series: :main and :run
The :main command in GHCi runs your program’s main
action. But did you know that you can also pass it command-line arguments, that the action doesn’t have to be named main
, and that you can do the same thing using the withArgs
function?