From 3fcc6c44d8178ccf749e99cdf7371cab66c358e2 Mon Sep 17 00:00:00 2001 From: Rodrigo Setti Date: Fri, 30 May 2014 00:08:09 +0000 Subject: [PATCH] Use version from generated cabal Paths module --- ShellCheck.cabal | 3 +++ ShellCheck/Data.hs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ShellCheck.cabal b/ShellCheck.cabal index 4b362fd..05b33c3 100644 --- a/ShellCheck.cabal +++ b/ShellCheck.cabal @@ -42,6 +42,8 @@ library ShellCheck.Data ShellCheck.Parser ShellCheck.Simple + other-modules: + Paths_ShellCheck executable shellcheck build-depends: @@ -54,3 +56,4 @@ executable shellcheck parsec, regex-compat main-is: shellcheck.hs + diff --git a/ShellCheck/Data.hs b/ShellCheck/Data.hs index 1f41c69..781d277 100644 --- a/ShellCheck/Data.hs +++ b/ShellCheck/Data.hs @@ -1,6 +1,9 @@ module ShellCheck.Data where -shellcheckVersion = "0.3.2" -- Must also be updated in ShellCheck.cabal +import Data.Version (showVersion) +import Paths_ShellCheck (version) + +shellcheckVersion = showVersion version internalVariables = [ -- Generic