From 19cd857470e3a46a3d8e06d84c0728a08061646f Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Tue, 6 Apr 2010 18:49:38 +0900 Subject: GHC version check. --- dns.cabal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dns.cabal b/dns.cabal index 34a2a61..99f3459 100644 --- a/dns.cabal +++ b/dns.cabal @@ -13,7 +13,10 @@ Category: Network Cabal-Version: >= 1.6 Build-Type: Simple library - GHC-Options: -Wall -fno-warn-unused-do-bind + if impl(ghc >= 6.12) + GHC-Options: -Wall -O2 -fno-warn-unused-do-bind + else + GHC-Options: -Wall -O2 Exposed-Modules: Network.DNS Network.DNS.Lookup Network.DNS.Resolver @@ -22,7 +25,7 @@ library Network.DNS.StateBinary Network.DNS.Query Network.DNS.Response - Build-Depends: base == 4.2.*, haskell98, + Build-Depends: base >= 4 && < 5, haskell98, binary, iproute, containers, mtl, bytestring, network, network-bytestring -- cgit v1.2.3