lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 18 forks source link

Allow forwarding of command-line arguments to the underlying code #7

Closed jargv closed 9 years ago

jargv commented 9 years ago

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.

lukexi commented 9 years ago

Rad, was on my todo list. Thanks a bunch!!