From a75b13f2565e7908eb3e86477c447ce7ca575820 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 Oct 2014 11:06:35 -0400 Subject: Adjust cabal file to support network-uri split. --- git-repair.cabal | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'git-repair.cabal') diff --git a/git-repair.cabal b/git-repair.cabal index 67573f4..0696576 100644 --- a/git-repair.cabal +++ b/git-repair.cabal @@ -22,14 +22,23 @@ Description: using git-repair can help rescue commits you've made to the damaged repository and not yet pushed out. +Flag network-uri + Description: Get Network.URI from the network-uri package + Default: True + Executable git-repair Main-Is: git-repair.hs GHC-Options: -Wall -threaded Build-Depends: MissingH, hslogger, directory, filepath, containers, mtl, - network, unix-compat, bytestring, exceptions (>= 0.6), transformers, + unix-compat, bytestring, exceptions (>= 0.6), transformers, base >= 4.5, base < 5, IfElse, text, process, time, QuickCheck, utf8-string, async, optparse-applicative (>= 0.10.0) + if flag(network-uri) + Build-Depends: network-uri (>= 2.6), network (>= 2.6) + else + Build-Depends: network (< 2.6), network (>= 2.0) + if (os(windows)) Build-Depends: setenv else -- cgit v1.2.3