File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- :set -isrc -itests -idraft
1
+ :set -isrc -itests -idist/build/autogen
Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ module Main
6
6
7
7
8
8
--------------------------------------------------------------------------------
9
+ import Data.List (intercalate )
9
10
import Data.Maybe (listToMaybe )
11
+ import Data.Version (Version (.. ))
10
12
import System.Console.CmdArgs
11
13
12
14
13
15
--------------------------------------------------------------------------------
16
+ import Paths_stylish_haskell (version )
14
17
import StylishHaskell
15
18
import StylishHaskell.Config
16
19
@@ -27,7 +30,9 @@ stylishArgs :: StylishArgs
27
30
stylishArgs = StylishArgs
28
31
{ config = Nothing &= typFile &= help " Configuration file"
29
32
, files = [] &= typFile &= args
30
- } &= summary " stylish-haskell"
33
+ } &= summary (" stylish-haskell-" ++ versionString version)
34
+ where
35
+ versionString = intercalate " ." . map show . versionBranch
31
36
32
37
33
38
--------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Executable stylish-haskell
24
24
Main-is : Main.hs
25
25
26
26
Other-modules :
27
+ Paths_stylish_haskell
27
28
StylishHaskell
28
29
StylishHaskell.Block
29
30
StylishHaskell.Config
You can’t perform that action at this time.
0 commit comments