{-# LANGUAGE CPP #-} {- | Module : Text.Pandoc.Version Copyright : Copyright (C) 2022-2024 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 pandocVersion = Version version -- | Text representation of the library's version number. pandocVersionText :: T.Text pandocVersionText :: Text pandocVersionText = String -> Text T.pack (String -> Text) -> String -> Text forall a b. (a -> b) -> a -> b $ Version -> String showVersion Version version