ghc-mod/src/GHCMod/Version.hs

17 lines
408 B
Haskell
Raw Normal View History

2015-12-05 20:55:12 +00:00
module GHCMod.Version where
import Paths_ghc_mod
import Data.Version (showVersion)
import Config (cProjectVersion)
progVersion :: String -> String
progVersion pf =
"ghc-mod"++pf++" version " ++ showVersion version ++ " compiled by GHC "
++ cProjectVersion
2015-12-05 20:55:12 +00:00
ghcModVersion :: String
ghcModVersion = progVersion ""
ghcModiVersion :: String
ghcModiVersion = progVersion "i"