aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Wrapper.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-06-12 03:08:56 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-06-12 03:08:56 +0200
commitc8f7ac80ee152d737220c75a4d9b10211a37ace8 (patch)
tree0098798db293d9f52960d9f6ed35a998caa415f9 /CabalHelper/Wrapper.hs
parenteddd7e4dcbd014030b6c28bc97adf47f7cfad2fb (diff)
Update and fix support for Cabal HEAD
Diffstat (limited to 'CabalHelper/Wrapper.hs')
-rw-r--r--CabalHelper/Wrapper.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/CabalHelper/Wrapper.hs b/CabalHelper/Wrapper.hs
index 1987e6c..5805f3f 100644
--- a/CabalHelper/Wrapper.hs
+++ b/CabalHelper/Wrapper.hs
@@ -22,7 +22,6 @@ import Data.Char
import Data.List
import Data.Maybe
import Data.String
-import Data.Version
import Text.Printf
import System.Console.GetOpt
import System.Environment
@@ -44,6 +43,7 @@ import CabalHelper.Common
import CabalHelper.GuessGhc
import CabalHelper.Compile
import CabalHelper.Types
+import CabalHelper.Compat.Version
usage :: IO ()
usage = do
@@ -126,7 +126,7 @@ main = handlePanic $ do
[cfile] <- filter isCabalFile <$> getDirectoryContents projdir
gpd <- readPackageDescription v (projdir </> cfile)
putStrLn $ show $
- [Just $ ChResponseVersion (display (packageName gpd)) (packageVersion gpd)]
+ [Just $ ChResponseVersion (display (packageName gpd)) (toDataVersion $ packageVersion gpd)]
projdir:distdir:args' -> do
cfgf <- canonicalizePath (distdir </> "setup-config")