]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - test.hs
handle "import"
[pdns-pipe-nmc.git] / test.hs
diff --git a/test.hs b/test.hs
index 117994d76e6e706503b81982f0976af42d3d0b80..3a9f8b4e0c4c2c92d4858fbdafbaa9dbf547ff26 100644 (file)
--- a/test.hs
+++ b/test.hs
@@ -8,8 +8,10 @@ import Data.ByteString.Lazy (ByteString)
 import Data.ByteString.Lazy.Char8 (readFile)
 import System.IO.Error
 import Control.Exception
+import Text.Show.Pretty
 
 import NmcDom
+import NmcTransform
 
 queryOp :: String -> IO (Either String ByteString)
 queryOp key = catch (readFile key >>= return . Right)
@@ -17,6 +19,5 @@ queryOp key = catch (readFile key >>= return . Right)
 
 main = do
         (d:_) <- getArgs
-        descendNmcDom queryOp []               (seedNmcDom d) >>= print
-        descendNmcDom queryOp ["_tcp","_smtp"] (seedNmcDom d) >>= print
+        descendNmcDom queryOp [] (seedNmcDom d) >>= putStrLn . ppShow