How to set a program’s command line arguments for GHCi? June 5, 2023 by Tarik You can also set the command line arguments in ghci ghci> :set args foo bar ghci> main or ghci> :main foo bar