X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=pdns-pipe-nmc.hs;h=bbe89ab1ccea7025bcf06b7a5ab3cfb426dd2673;hp=5fc64fa1c940c96bff85b47f80ec7bc65943b307;hb=4b66831c60d39decdc515fb7878ce3c0339684bd;hpb=2953a303726d0da28406d86f8e90e33c8b26821d diff --git a/pdns-pipe-nmc.hs b/pdns-pipe-nmc.hs index 5fc64fa..bbe89ab 100644 --- a/pdns-pipe-nmc.hs +++ b/pdns-pipe-nmc.hs @@ -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_http_client(0,3,0) 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