aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Version.hs
blob: a41fd3c12b34f061341ac04b523330614da4975c (plain)
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-2024 John MacFarlane
   License     : GNU GPL, version 2 or above

   Maintainer  : John MacFarlane <[email protected]>
   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