diff options
Diffstat (limited to 'src/Version.hs')
-rw-r--r-- | src/Version.hs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Version.hs b/src/Version.hs deleted file mode 100644 index 1748512..0000000 --- a/src/Version.hs +++ /dev/null @@ -1,17 +0,0 @@ -{-# LANGUAGE TemplateHaskell #-} - - -module Version ( version ) where - -import Universum - -import qualified Language.Haskell.TH as TH -import System.Process (readProcess) - -version :: String -version = "walint generic 2022 (" <> - $(do - hash <- liftIO $ catchAny (readProcess "git" ["rev-parse", "HEAD"] "") - (\_ -> pure "[unknown]") - pure . TH.LitE . TH.StringL $ take 40 hash) ++ - ")" |