attempt to make portable build
authorEugene Crosser <crosser@average.org>
Fri, 2 May 2014 13:47:11 +0000 (17:47 +0400)
committerEugene Crosser <crosser@average.org>
Fri, 2 May 2014 13:47:44 +0000 (17:47 +0400)
pdns-pipe-nmc.cabal
pdns-pipe-nmc.hs

index 3b4b57694f539f47992644b0be8fc02a6fa3c6ce..d37a73315fa9db58261902ca465e5cde2e0d88e6 100644 (file)
@@ -1,5 +1,5 @@
 name:                pdns-pipe-nmc
-version:             0.9.0.0
+version:             0.9.0.1
 synopsis:            Namecoin pipe backend for PowerDNS
 description:         Realtime bridge between Namecoin "d/" namespace
                      (http://namecoin.info/) and DNS implemented as
@@ -35,11 +35,11 @@ executable pdns-pipe-nmc
                      , MissingH
                      , vector
                      , unordered-containers
+                     , data-default >=0.5.1
                      , data-default-class >=0.0.1
                      , http-client >=0.2
                      , http-types >=0.6
                      , mtl >=2.0
                      , pretty-show
                      , time
-  -- hs-source-dirs:      
   default-language:    Haskell98
index 5fc64fa1c940c96bff85b47f80ec7bc65943b307..dbb7853770d3027d46a2e83a83b19ab44fd1627f 100644 (file)
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE OverloadedStrings #-}
 
 module Main where
@@ -21,9 +22,11 @@ import Data.Map.Lazy (Map, empty, lookup, insert, delete, size)
 import Data.Aeson (encode, decode, Value(..))
 import Network.HTTP.Types
 import Network.HTTP.Client
+#if MIN_VERSION_data_default(0,5,3)
 import Data.Default.Class (def)
--- if you have data-default-0.5.1 import this instead of Data.Default.Class:
--- import Data.Default (def)
+#else
+import Data.Default (def)
+#endif
 
 import JsonRpcClient
 import Config