17 lines
416 B
Haskell
17 lines
416 B
Haskell
|
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 ++ "\n"
|
||
|
|
||
|
ghcModVersion :: String
|
||
|
ghcModVersion = progVersion ""
|
||
|
|
||
|
ghcModiVersion :: String
|
||
|
ghcModiVersion = progVersion "i"
|