blob: 663201855db224e453cdca7ba206e37e4f735793 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{-# LANGUAGE CPP #-}
{- |
Module : Text.Pandoc.Version
Copyright : Copyright (C) 2022-2023 John MacFarlane
License : GNU GPL, version 2 or above
Maintainer : John MacFarlane <jgm@berkeley.edu>
Stability : alpha
Portability : portable
Version information.
-}
module Text.Pandoc.Version (
pandocVersion,
pandocVersionText
) where
import Data.Version (Version, showVersion)
import Paths_pandoc (version)
import qualified Data.Text as T
-- | Version number of pandoc library.
pandocVersion :: Version
pandocVersion = version
-- | Text representation of the library's version number.
pandocVersionText :: T.Text
pandocVersionText = T.pack $ showVersion version
|