{-# LANGUAGE TemplateHaskell #-} module Version ( version ) where import Control.Monad.Trans (liftIO) import qualified Language.Haskell.TH as TH import System.Process (readProcess) version :: String version = "walint rc3 2021 (" <> $(do hash <- liftIO $ readProcess "git" ["rev-parse", "HEAD"] "" pure . TH.LitE . TH.StringL $ take 40 hash) ++ ")"