Commit 3c9eccfa authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Note the form of jhc --version output

parent a42f06cc
......@@ -512,6 +512,9 @@ hmakeProgram = (simpleProgram "hmake") {
jhcProgram :: Program
jhcProgram = (simpleProgram "jhc") {
programFindVersion = findProgramVersion "--version" $ \str ->
-- invoking "jhc --version" gives a string like
-- "jhc 0.3.20080208 (wubgipkamcep-2)
-- compiled by ghc-6.8 on a x86_64 running linux"
case words str of
(_:ver:_) -> ver
_ -> ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment