@@ -31,6 +31,8 @@ import qualified Data.Text.Lazy as L
31import qualified Data.Text.Lazy.Encoding as L
31import qualified Data.Text.Lazy.Encoding as L
32import qualified Data.ByteString as B
32import qualified Data.ByteString as B
34+import Development.GitRev
34import Language.PureScript.AST.Literals
36import Language.PureScript.AST.Literals
35import Language.PureScript.CoreFn
37import Language.PureScript.CoreFn
36import Language.PureScript.CoreFn.FromJSON
38import Language.PureScript.CoreFn.FromJSON
@@ -62,8 +64,15 @@ main = do
62 if "--tests" `elem` opts'
64 if "--tests" `elem` opts'
63 then runTests
65 then runTests
65− if "--help" `elem` opts'
67+ if "--help" `elem` opts' || "--version" `elem` opts'
69+ when ("--help" `elem` opts') $ do
66− then putStrLn help
70+ putStrLn help
71+ when ("--version" `elem` opts') $ do
72+ let branch = $(gitBranch)
73+ details | branch == "golang" = "master, commit " ++ $(gitHash)
75+ putStrLn $ details ++ if $(gitDirty) then " (DIRTY)" else ""
68 if null files
77 if null files