Use Paths_pandoc to get version number.
(Instead of hard-coding it into Text/Pandoc.hs.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1560 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
0395ba157e
commit
a972a6ccbc
2 changed files with 5 additions and 2 deletions
|
@ -193,7 +193,8 @@ Library
|
|||
Text.Pandoc.Writers.RTF,
|
||||
Text.Pandoc.Writers.S5
|
||||
Other-Modules: Text.Pandoc.XML,
|
||||
Text.Pandoc.TH
|
||||
Text.Pandoc.TH,
|
||||
Paths_pandoc
|
||||
Extensions: CPP, TemplateHaskell, FlexibleInstances
|
||||
Ghc-Options: -O2 -Wall
|
||||
Ghc-Prof-Options: -auto-all
|
||||
|
|
|
@ -108,7 +108,9 @@ import Text.Pandoc.Writers.RTF
|
|||
import Text.Pandoc.Writers.MediaWiki
|
||||
import Text.Pandoc.DefaultHeaders
|
||||
import Text.Pandoc.Shared
|
||||
import Data.Version (showVersion)
|
||||
import Paths_pandoc (version)
|
||||
|
||||
-- | Version number of pandoc library.
|
||||
pandocVersion :: String
|
||||
pandocVersion = "1.2"
|
||||
pandocVersion = showVersion version
|
||||
|
|
Loading…
Add table
Reference in a new issue