{-# LANGUAGE PatternSynonyms, ScopedTypeVariables, ViewPatterns #-} -- | Copyright : Will Thompson and Iñaki García Etxebarria -- License : LGPL-2.1 -- Maintainer : Iñaki García Etxebarria #if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__)) #define ENABLE_OVERLOADING #endif module GI.Rsvg.Constants ( pattern VERSION , pattern MINOR_VERSION , pattern MICRO_VERSION , pattern MAJOR_VERSION , ) where import Data.GI.Base.ShortPrelude import qualified Data.GI.Base.ShortPrelude as SP import qualified Data.GI.Base.Overloading as O import qualified Prelude as P import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.GI.Base.BasicTypes as B.Types import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr import qualified Data.GI.Base.GArray as B.GArray import qualified Data.GI.Base.GClosure as B.GClosure import qualified Data.GI.Base.GError as B.GError import qualified Data.GI.Base.GHashTable as B.GHT import qualified Data.GI.Base.GVariant as B.GVariant import qualified Data.GI.Base.GValue as B.GValue import qualified Data.GI.Base.GParamSpec as B.GParamSpec import qualified Data.GI.Base.CallStack as B.CallStack import qualified Data.GI.Base.Properties as B.Properties import qualified Data.GI.Base.Signals as B.Signals import qualified Control.Monad.IO.Class as MIO import qualified Data.Coerce as Coerce import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map import qualified Foreign.Ptr as FP import qualified GHC.OverloadedLabels as OL import qualified GHC.Records as R -- | This is a C macro that expands to a string with the version of -- librsvg against which your program is compiled. -- -- For example, for librsvg-2.3.4, this macro expands to -- @\"2.3.4\"@. -- -- C programs can use this as a compile-time check for the required -- version, but note that generally it is a better idea to do -- compile-time checks by calling <https://www.freedesktop.org/wiki/Software/pkg-config/ pkg-config> -- in your build scripts. -- -- Note: for a run-time check on the version of librsvg that your -- program is running with (e.g. the version which the linker used for -- your program), or for programs not written in C, use -- @rsvg_version@ instead. pattern $mVERSION :: forall {r}. Text -> ((# #) -> r) -> ((# #) -> r) -> r $bVERSION :: Text VERSION = "2.54.4" :: T.Text -- | This is a C macro that expands to a number with the minor version -- of librsvg against which your program is compiled. -- -- For example, for librsvg-2.3.4, the minor version is 3. -- -- C programs can use this as a compile-time check for the required -- version, but note that generally it is a better idea to do -- compile-time checks by calling <https://www.freedesktop.org/wiki/Software/pkg-config/ pkg-config> -- in your build scripts. -- -- Note: for a run-time check on the version of librsvg that your -- program is running with (e.g. the version which the linker used for -- your program), or for programs not written in C, use -- @rsvg_minor_version@ instead. pattern $mMINOR_VERSION :: forall {r}. Int32 -> ((# #) -> r) -> ((# #) -> r) -> r $bMINOR_VERSION :: Int32 MINOR_VERSION = 54 :: Int32 -- | This is a C macro that expands to a number with the micro version -- of librsvg against which your program is compiled. -- -- For example, for librsvg-2.3.4, the micro version is 4. -- -- C programs can use this as a compile-time check for the required -- version, but note that generally it is a better idea to do -- compile-time checks by calling <https://www.freedesktop.org/wiki/Software/pkg-config/ pkg-config> -- in your build scripts. -- -- Note: for a run-time check on the version of librsvg that your -- program is running with (e.g. the version which the linker used for -- your program), or for programs not written in C, use -- @rsvg_micro_version@ instead. pattern $mMICRO_VERSION :: forall {r}. Int32 -> ((# #) -> r) -> ((# #) -> r) -> r $bMICRO_VERSION :: Int32 MICRO_VERSION = 4 :: Int32 -- | This is a C macro that expands to a number with the major version -- of librsvg against which your program is compiled. -- -- For example, for librsvg-2.3.4, the major version is 2. -- -- C programs can use this as a compile-time check for the required -- version, but note that generally it is a better idea to do -- compile-time checks by calling <https://www.freedesktop.org/wiki/Software/pkg-config/ pkg-config> -- in your build scripts. -- -- Note: for a run-time check on the version of librsvg that your -- program is running with (e.g. the version which the linker used for -- your program), or for programs not written in C, use -- @rsvg_major_version@ instead. pattern $mMAJOR_VERSION :: forall {r}. Int32 -> ((# #) -> r) -> ((# #) -> r) -> r $bMAJOR_VERSION :: Int32 MAJOR_VERSION = 2 :: Int32