diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-04-18 16:15:56 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-04-18 16:15:56 +0000 |
commit | a972a6ccbc57b35e4b1de2693364335cb65f4a51 (patch) | |
tree | 16e222d9f913d5a90e74c5c1f0e204ba7ae02536 /src/Text/Pandoc.hs | |
parent | 0395ba157eed757fa7b7e3dc278302c566902c22 (diff) |
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
Diffstat (limited to 'src/Text/Pandoc.hs')
-rw-r--r-- | src/Text/Pandoc.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc.hs b/src/Text/Pandoc.hs index 496128480..2f9833b6b 100644 --- a/src/Text/Pandoc.hs +++ b/src/Text/Pandoc.hs @@ -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 |