My specific use-case is using halive with hspec. Currently if I try to do so, I get an error: unexpected argument: test/Main.hs because hspec simply grabs the command-line arguments and ends up with whatever I've passed to halive.
This pull request allows me to pass separate command-line arguments to hspec by doing: halive test/Main.hs src -- args to hspec.
Note that if there is no -- the underlying app will get [] when calling getArgs.
My specific use-case is using halive with hspec. Currently if I try to do so, I get an error:
unexpected argument: test/Main.hs
because hspec simply grabs the command-line arguments and ends up with whatever I've passed to halive.This pull request allows me to pass separate command-line arguments to hspec by doing:
halive test/Main.hs src -- args to hspec
.Note that if there is no
--
the underlying app will get[]
when calling getArgs.