From c8f7ac80ee152d737220c75a4d9b10211a37ace8 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Mon, 12 Jun 2017 03:08:56 +0200 Subject: Update and fix support for Cabal HEAD --- CabalHelper/Wrapper.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CabalHelper/Wrapper.hs') 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") -- cgit v1.2.3