mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 18:52:52 +08:00
Use version from generated cabal Paths module
This commit is contained in:
@@ -42,6 +42,8 @@ library
|
|||||||
ShellCheck.Data
|
ShellCheck.Data
|
||||||
ShellCheck.Parser
|
ShellCheck.Parser
|
||||||
ShellCheck.Simple
|
ShellCheck.Simple
|
||||||
|
other-modules:
|
||||||
|
Paths_ShellCheck
|
||||||
|
|
||||||
executable shellcheck
|
executable shellcheck
|
||||||
build-depends:
|
build-depends:
|
||||||
@@ -54,3 +56,4 @@ executable shellcheck
|
|||||||
parsec,
|
parsec,
|
||||||
regex-compat
|
regex-compat
|
||||||
main-is: shellcheck.hs
|
main-is: shellcheck.hs
|
||||||
|
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
module ShellCheck.Data where
|
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 = [
|
internalVariables = [
|
||||||
-- Generic
|
-- Generic
|
||||||
|
Reference in New Issue
Block a user