How can I pass command line arguments to ghci in the same way as doing the below (within the GHCi prompt):
:set args abc xyz
So something like ghci Main.hs -- abc xyz?
You can create a .ghci file with
:set args abc xyz
Which will be executed when executing ghci Main.hs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With