Skip to content

Commit

Permalink
Fix version (#19)
Browse files Browse the repository at this point in the history
The version is now derived automatically from the package version
  • Loading branch information
Gabriella439 authored Nov 24, 2017
1 parent b023328 commit 96ad659
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bench.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ executable bench
, text < 1.3
, turtle >= 1.2.5 && < 1.5
ghc-options: -Wall -O2 -threaded
other-modules: Paths_bench
4 changes: 3 additions & 1 deletion src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ import qualified Criterion
import qualified Criterion.Main as Criterion
import qualified Criterion.Main.Options as Criterion
import qualified Data.Text as Text
import qualified Data.Version
import qualified Options.Applicative
import qualified Paths_bench
import qualified System.IO as IO
import qualified System.IO.Silently as Silently
import qualified System.Process
import qualified Turtle

version :: Text
version = "1.0.2"
version = Text.pack (Data.Version.showVersion Paths_bench.version)

data Options = Options [Text] Criterion.Mode | Version deriving (Show)

Expand Down

0 comments on commit 96ad659

Please sign in to comment.