pts
pts copied to clipboard
Define :test command in .ghci
The .ghci
file should define a :test
command that runs unit tests from ghci. This can be done by something like the following:
cmdTests args = <haskell code to run the tests here>
:def test cmdTests
It would be perfect if cmdTests
would use the args
to decide which tests to run.