-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Use TH to embed Git repo information. -- -- Use Template Haskell to embed Git revision, branch, and tag -- information. @package git-embed @version 0.0.1 -- | Use Template Haskell to embed Git revision, branch, and tag -- information. -- -- Also adds dependent files so that changes to git refs cause a rebuild. -- -- Example: -- --
-- {-# LANGUAGE TemplateHaskell #-}
-- import Data.GitEmbed
--
-- main :: IO ()
-- main = putStrLn ("Git revision: " ++ gitRev ++ ", branch: " ++ gitBranch)
--
-- gitRev :: String
-- gitRev = $(embedGitShortRevision)
--
-- gitBranch :: String
-- gitBranch = $(embedGitBranch)
--
module Data.GitEmbed
-- | Embed the current Git long hexadecimal revision ID.
embedGitRevision :: Q Exp
-- | Embed the current Git short hexadecimal revision ID (first 7 digits).
embedGitShortRevision :: Q Exp
-- | Embed the current Git branch name.
embedGitBranch :: Q Exp
-- | Embed output of git describe.
embedGitDescribe :: [String] -> Q Exp
-- | Embed output of any Git command.
embedGit :: [String] -> Q Exp