mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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:
+2
-1
@@ -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
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user