From d08fe8fc8a7a283c4eb55818b8858ae5c5bad10b Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Mon, 26 Dec 2011 17:08:00 +0900 Subject: [PATCH] version auto gen. --- GHCMod.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GHCMod.hs b/GHCMod.hs index b8e4d66..a12fa93 100644 --- a/GHCMod.hs +++ b/GHCMod.hs @@ -2,16 +2,18 @@ module Main where -import CabalDev (modifyOptions) import Browse +import CabalDev (modifyOptions) import Check import Control.Applicative import Control.Exception import Data.Typeable +import Data.Version import Info import Lang import Lint import List +import Paths_ghc_mod import Prelude import System.Console.GetOpt import System.Directory @@ -25,7 +27,7 @@ ghcOptHelp :: String ghcOptHelp = " [-g GHC_opt1 -g GHC_opt2 ...] " usage :: String -usage = "ghc-mod version 1.0.4\n" +usage = "ghc-mod version " ++ showVersion version ++ "\n" ++ "Usage:\n" ++ "\t ghc-mod list" ++ ghcOptHelp ++ "[-l]\n" ++ "\t ghc-mod lang [-l]\n"