@@ -10,6 +10,8 @@ import GHC.IO.Encoding (setLocaleEncoding, utf8)
10import qualified Elm.Compiler.Version as Compiler
10import qualified Elm.Compiler.Version as Compiler
11import qualified Elm.Package as Pkg
11import qualified Elm.Package as Pkg
13main :: IO ()
15main :: IO ()
15 do setLocaleEncoding utf8
17 do setLocaleEncoding utf8
@@ -19,6 +21,12 @@ main =
20 putStrLn usageMessage
22 putStrLn usageMessage
25+ putStrLn $ Pkg.versionToString Compiler.version
28+ putStrLn $ Pkg.versionToString Compiler.version
22 command : args ->
30 command : args ->
23 attemptToRun command args
31 attemptToRun command args
@@ -50,7 +58,7 @@ attemptToRun command args =
51usageMessage :: String
59usageMessage :: String
52usageMessage =
60usageMessage =
53− "Elm Platform " ++ (Pkg.versionToString Compiler.version) ++ " - a way to run all Elm tools\n\
61+ "Elm Platform " ++ Pkg.versionToString Compiler.version ++ " - a way to run all Elm tools\n\
55 \Usage: elm <command> [<args>]\n\
63 \Usage: elm <command> [<args>]\n\