Skip to content

Commit 3f2c420

Browse files
authored
Simplify dhall version output to just version string (#1163)
The motivation for this is two-fold: * To get rid of the standard version from the output Currently it's just "None", which could be fixed, but keeping it up to date is error-prone, so I prefer to just remove it. * To make the output machine-readable Example: ``` $ dhall version 1.24.0 ```
1 parent 7a88cdf commit 3f2c420

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dhall/src/Dhall/Main.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,7 @@ command (Options {..}) = do
363363

364364
handle $ case mode of
365365
Version -> do
366-
let line₀ = "Haskell package version: "
367-
<> Data.Text.pack (showVersion Meta.version)
368-
369-
let line₁ = "Standard version: "
370-
<> Dhall.Binary.renderStandardVersion Dhall.Binary.defaultStandardVersion
371-
372-
Data.Text.IO.putStrLn line₀
373-
Data.Text.IO.putStrLn line₁
366+
putStrLn (showVersion Meta.version)
374367

375368
Default {..} -> do
376369
expression <- getExpression file

0 commit comments

Comments
 (0)