Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
3c9eccfa
Commit
3c9eccfa
authored
Feb 11, 2008
by
Duncan Coutts
Browse files
Note the form of jhc --version output
parent
a42f06cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Program.hs
View file @
3c9eccfa
...
...
@@ -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
_
->
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment