Skip to content
Snippets Groups Projects
Commit eb617e26 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Avoid using `CURRENT_PACKAGE_VERSION` macro

As this would require us to declare `cabal-version: 2.0` in the
cabal package description.

This regression was introduced in 9c13b192

Fixes #6
parent b8588039
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@ import System.IO
#ifdef BUILD_NHC
import System.Directory ( getCurrentDirectory )
#else
import Paths_hsc2hs as Main ( getDataFileName )
import Paths_hsc2hs as Main ( getDataFileName, version )
import Data.Version ( showVersion )
#endif
#if defined(IN_GHC_TREE)
import System.Environment ( getExecutablePath )
......@@ -66,7 +67,7 @@ getDataFileName s = do here <- getCurrentDirectory
#endif
versionString :: String
versionString = "hsc2hs version " ++ CURRENT_PACKAGE_VERSION ++ "\n"
versionString = "hsc2hs version " ++ showVersion version ++ "\n"
main :: IO ()
main = do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment